| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 int left, int top, int width, int height, | 153 int left, int top, int width, int height, |
| 154 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 154 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
| 155 | 155 |
| 156 bool onTransferPixels(GrSurface*, | 156 bool onTransferPixels(GrSurface*, |
| 157 int left, int top, int width, int height, | 157 int left, int top, int width, int height, |
| 158 GrPixelConfig config, GrBuffer* transferBuffer, | 158 GrPixelConfig config, GrBuffer* transferBuffer, |
| 159 size_t offset, size_t rowBytes) override { return fals
e; } | 159 size_t offset, size_t rowBytes) override { return fals
e; } |
| 160 | 160 |
| 161 void onResolveRenderTarget(GrRenderTarget* target) override {} | 161 void onResolveRenderTarget(GrRenderTarget* target) override {} |
| 162 | 162 |
| 163 bool prepareDrawState(const GrPipeline&, | 163 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, |
| 164 const GrPrimitiveProcessor&, | 164 const GrPrimitiveProcessor&, |
| 165 GrPrimitiveType, | 165 GrPrimitiveType, |
| 166 const GrVkRenderPass&, | 166 const GrVkRenderPass&); |
| 167 GrVkPipelineState** pipelineState); | |
| 168 | 167 |
| 169 // Bind vertex and index buffers | 168 // Bind vertex and index buffers |
| 170 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); | 169 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); |
| 171 | 170 |
| 172 // Ends and submits the current command buffer to the queue and then creates
a new command | 171 // Ends and submits the current command buffer to the queue and then creates
a new command |
| 173 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi
ll wait for all | 172 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi
ll wait for all |
| 174 // work in the queue to finish before returning. | 173 // work in the queue to finish before returning. |
| 175 void submitCommandBuffer(SyncQueue sync); | 174 void submitCommandBuffer(SyncQueue sync); |
| 176 | 175 |
| 177 void copySurfaceAsCopyImage(GrSurface* dst, | 176 void copySurfaceAsCopyImage(GrSurface* dst, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 212 |
| 214 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 213 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
| 215 // since there is significant overhead to the first compile of any compiler. | 214 // since there is significant overhead to the first compile of any compiler. |
| 216 shaderc_compiler_t fCompiler; | 215 shaderc_compiler_t fCompiler; |
| 217 | 216 |
| 218 | 217 |
| 219 typedef GrGpu INHERITED; | 218 typedef GrGpu INHERITED; |
| 220 }; | 219 }; |
| 221 | 220 |
| 222 #endif | 221 #endif |
| OLD | NEW |