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(size_t size, GrBufferType type, GrAccessPattern) ov
erride; | 134 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid
e; |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 221 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
222 // since there is significant overhead to the first compile of any compiler. | 222 // since there is significant overhead to the first compile of any compiler. |
223 shaderc_compiler_t fCompiler; | 223 shaderc_compiler_t fCompiler; |
224 | 224 |
225 | 225 |
226 typedef GrGpu INHERITED; | 226 typedef GrGpu INHERITED; |
227 }; | 227 }; |
228 | 228 |
229 #endif | 229 #endif |
OLD | NEW |