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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 bool onReadPixels(GrSurface* surface, | 144 bool onReadPixels(GrSurface* surface, |
145 int left, int top, int width, int height, | 145 int left, int top, int width, int height, |
146 GrPixelConfig, | 146 GrPixelConfig, |
147 void* buffer, | 147 void* buffer, |
148 size_t rowBytes) override; | 148 size_t rowBytes) override; |
149 | 149 |
150 bool onWritePixels(GrSurface* surface, | 150 bool onWritePixels(GrSurface* surface, |
151 int left, int top, int width, int height, | 151 int left, int top, int width, int height, |
152 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 152 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
153 | 153 |
154 bool onTransferPixels(GrTexture*, | 154 bool onTransferPixels(GrSurface*, |
155 int left, int top, int width, int height, | 155 int left, int top, int width, int height, |
156 GrPixelConfig config, GrBuffer* transferBuffer, | 156 GrPixelConfig config, GrBuffer* transferBuffer, |
157 size_t offset, size_t rowBytes) override; | 157 size_t offset, size_t rowBytes) override { return fals
e; } |
158 | 158 |
159 void onResolveRenderTarget(GrRenderTarget* target) override {} | 159 void onResolveRenderTarget(GrRenderTarget* target) override {} |
160 | 160 |
161 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, | 161 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, |
162 const GrPrimitiveProcessor&, | 162 const GrPrimitiveProcessor&, |
163 GrPrimitiveType, | 163 GrPrimitiveType, |
164 const GrVkRenderPass&); | 164 const GrVkRenderPass&); |
165 | 165 |
166 // Bind vertex and index buffers | 166 // Bind vertex and index buffers |
167 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); | 167 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); |
(...skipping 51 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 |