• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright 2021 Google LLC
3   *
4   * Use of this source code is governed by a BSD-style license that can be
5   * found in the LICENSE file.
6   */
7  
8  #include "experimental/graphite/src/ContextPriv.h"
9  
10  #include "experimental/graphite/src/Gpu.h"
11  
12  namespace skgpu {
13  
gpu()14  Gpu* ContextPriv::gpu() {
15      return fContext->fGpu.get();
16  }
17  
gpu() const18  const Gpu* ContextPriv::gpu() const {
19      return fContext->fGpu.get();
20  }
21  
resourceProvider()22  ResourceProvider* ContextPriv::resourceProvider() {
23      return this->gpu()->resourceProvider();
24  }
25  
26  
27  } // namespace skgpu
28