| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void* buffer, | 146 void* buffer, |
| 147 size_t rowBytes) override; | 147 size_t rowBytes) override; |
| 148 | 148 |
| 149 bool onWritePixels(GrSurface* surface, | 149 bool onWritePixels(GrSurface* surface, |
| 150 int left, int top, int width, int height, | 150 int left, int top, int width, int height, |
| 151 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 151 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
| 152 | 152 |
| 153 bool onTransferPixels(GrSurface*, | 153 bool onTransferPixels(GrSurface*, |
| 154 int left, int top, int width, int height, | 154 int left, int top, int width, int height, |
| 155 GrPixelConfig config, GrBuffer* transferBuffer, | 155 GrPixelConfig config, GrBuffer* transferBuffer, |
| 156 size_t offset, size_t rowBytes) override { return fals
e; } | 156 size_t offset, size_t rowBytes) override; |
| 157 | 157 |
| 158 void onResolveRenderTarget(GrRenderTarget* target) override {} | 158 void onResolveRenderTarget(GrRenderTarget* target) override {} |
| 159 | 159 |
| 160 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, | 160 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, |
| 161 const GrPrimitiveProcessor&, | 161 const GrPrimitiveProcessor&, |
| 162 GrPrimitiveType, | 162 GrPrimitiveType, |
| 163 const GrVkRenderPass&); | 163 const GrVkRenderPass&); |
| 164 | 164 |
| 165 // Bind vertex and index buffers | 165 // Bind vertex and index buffers |
| 166 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); | 166 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 219 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 220 // since there is significant overhead to the first compile of any compiler. | 220 // since there is significant overhead to the first compile of any compiler. |
| 221 shaderc_compiler_t fCompiler; | 221 shaderc_compiler_t fCompiler; |
| 222 | 222 |
| 223 | 223 |
| 224 typedef GrGpu INHERITED; | 224 typedef GrGpu INHERITED; |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 #endif | 227 #endif |
| OLD | NEW |