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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 bool onWritePixels(GrSurface* surface, | 193 bool onWritePixels(GrSurface* surface, |
194 int left, int top, int width, int height, | 194 int left, int top, int width, int height, |
195 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; | 195 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri
de; |
196 | 196 |
197 bool onTransferPixels(GrSurface*, | 197 bool onTransferPixels(GrSurface*, |
198 int left, int top, int width, int height, | 198 int left, int top, int width, int height, |
199 GrPixelConfig config, GrBuffer* transferBuffer, | 199 GrPixelConfig config, GrBuffer* transferBuffer, |
200 size_t offset, size_t rowBytes) override { return fals
e; } | 200 size_t offset, size_t rowBytes) override { return fals
e; } |
201 | 201 |
202 void onResolveRenderTarget(GrRenderTarget* target) override {} | 202 void onResolveRenderTarget(GrRenderTarget* target) override; |
203 | 203 |
204 // Ends and submits the current command buffer to the queue and then creates
a new command | 204 // Ends and submits the current command buffer to the queue and then creates
a new command |
205 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi
ll wait for all | 205 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi
ll wait for all |
206 // work in the queue to finish before returning. | 206 // work in the queue to finish before returning. |
207 void submitCommandBuffer(SyncQueue sync); | 207 void submitCommandBuffer(SyncQueue sync); |
208 | 208 |
209 void copySurfaceAsCopyImage(GrSurface* dst, | 209 void copySurfaceAsCopyImage(GrSurface* dst, |
210 GrSurface* src, | 210 GrSurface* src, |
211 GrVkImage* dstImage, | 211 GrVkImage* dstImage, |
212 GrVkImage* srcImage, | 212 GrVkImage* srcImage, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 #else | 262 #else |
263 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once | 263 // Shaderc compiler used for compiling glsl in spirv. We only want to create
the compiler once |
264 // since there is significant overhead to the first compile of any compiler. | 264 // since there is significant overhead to the first compile of any compiler. |
265 shaderc_compiler_t fCompiler; | 265 shaderc_compiler_t fCompiler; |
266 #endif | 266 #endif |
267 | 267 |
268 typedef GrGpu INHERITED; | 268 typedef GrGpu INHERITED; |
269 }; | 269 }; |
270 | 270 |
271 #endif | 271 #endif |
OLD | NEW |