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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, | 122 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, |
123 const SkTArray<GrMipLevel>&) override; | 123 const SkTArray<GrMipLevel>&) override; |
124 | 124 |
125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
126 const SkTArray<GrMipLevel>&) override {
return NULL; } | 126 const SkTArray<GrMipLevel>&) override {
return NULL; } |
127 | 127 |
128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; | 128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership
) override; |
129 | 129 |
130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, | 130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, |
131 GrWrapOwnership) override; | 131 GrWrapOwnership) override; |
132 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&, | 132 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } |
133 GrWrapOwnership) override
{ return NULL; } | |
134 | 133 |
135 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; | 134 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; |
136 | 135 |
137 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 136 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
138 | 137 |
139 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
140 | 139 |
141 void onDraw(const GrPipeline&, | 140 void onDraw(const GrPipeline&, |
142 const GrPrimitiveProcessor&, | 141 const GrPrimitiveProcessor&, |
143 const GrMesh*, | 142 const GrMesh*, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 211 |
213 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 212 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
214 // since there is significant overhead to the first compile of any compiler. | 213 // since there is significant overhead to the first compile of any compiler. |
215 shaderc_compiler_t fCompiler; | 214 shaderc_compiler_t fCompiler; |
216 | 215 |
217 | 216 |
218 typedef GrGpu INHERITED; | 217 typedef GrGpu INHERITED; |
219 }; | 218 }; |
220 | 219 |
221 #endif | 220 #endif |
OLD | NEW |