OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrVkGpu_DEFINED | 8 #ifndef GrVkGpu_DEFINED |
9 #define GrVkGpu_DEFINED | 9 #define GrVkGpu_DEFINED |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 void finishDrawTarget() override; | 112 void finishDrawTarget() override; |
113 | 113 |
114 private: | 114 private: |
115 GrVkGpu(GrContext* context, const GrContextOptions& options, | 115 GrVkGpu(GrContext* context, const GrContextOptions& options, |
116 const GrVkBackendContext* backendContext); | 116 const GrVkBackendContext* backendContext); |
117 | 117 |
118 void onResetContext(uint32_t resetBits) override {} | 118 void onResetContext(uint32_t resetBits) override {} |
119 | 119 |
120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, | 120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, |
121 const SkTArray<GrMipLevel>&) override; | 121 const SkTArray<GrMipLevel>&) override; |
122 | 122 |
123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, SkBudgeted, |
124 const SkTArray<GrMipLevel>&) override {
return NULL; } | 124 const SkTArray<GrMipLevel>&) override {
return NULL; } |
125 | 125 |
126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
127 | 127 |
128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
129 GrWrapOwnership) override; | 129 GrWrapOwnership) override; |
130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } | 130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } |
131 | 131 |
132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern, | 132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern, |
133 const void* data) override; | 133 const void* data) override; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 220 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
221 // since there is significant overhead to the first compile of any compiler. | 221 // since there is significant overhead to the first compile of any compiler. |
222 shaderc_compiler_t fCompiler; | 222 shaderc_compiler_t fCompiler; |
223 | 223 |
224 | 224 |
225 typedef GrGpu INHERITED; | 225 typedef GrGpu INHERITED; |
226 }; | 226 }; |
227 | 227 |
228 #endif | 228 #endif |
OLD | NEW |