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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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&) override { return NULL; } | 132 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { return NULL; } |
133 | 133 |
134 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; | 134 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern) ov
erride; |
135 | 135 |
136 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; | 136 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
137 | 137 |
138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; |
139 | 139 |
140 void onDraw(const GrPipeline&, | 140 void onDraw(const GrPipeline&, |
141 const GrPrimitiveProcessor&, | 141 const GrPrimitiveProcessor&, |
142 const GrMesh*, | 142 const GrMesh*, |
143 int meshCount) override; | 143 int meshCount) override; |
144 | 144 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 // 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 |
213 // 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. |
214 shaderc_compiler_t fCompiler; | 214 shaderc_compiler_t fCompiler; |
215 | 215 |
216 | 216 |
217 typedef GrGpu INHERITED; | 217 typedef GrGpu INHERITED; |
218 }; | 218 }; |
219 | 219 |
220 #endif | 220 #endif |
OLD | NEW |