| /* |
| * Copyright 2021 Google LLC |
| * |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #include "experimental/graphite/src/ContextPriv.h" |
| |
| #include "experimental/graphite/src/Gpu.h" |
| |
| namespace skgpu { |
| |
| Gpu* ContextPriv::gpu() { |
| return fContext->fGpu.get(); |
| } |
| |
| const Gpu* ContextPriv::gpu() const { |
| return fContext->fGpu.get(); |
| } |
| |
| ResourceProvider* ContextPriv::resourceProvider() { |
| return this->gpu()->resourceProvider(); |
| } |
| |
| SkShaderCodeDictionary* ContextPriv::shaderCodeDictionary() { |
| return fContext->fShaderCodeDictionary.get(); |
| } |
| |
| const SkShaderCodeDictionary* ContextPriv::shaderCodeDictionary() const { |
| return fContext->fShaderCodeDictionary.get(); |
| } |
| |
| } // namespace skgpu |