| 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 GrVkCommandBuffer_DEFINED | 8 #ifndef GrVkCommandBuffer_DEFINED |
| 9 #define GrVkCommandBuffer_DEFINED | 9 #define GrVkCommandBuffer_DEFINED |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 uint32_t copyRegionCount, | 244 uint32_t copyRegionCount, |
| 245 const VkBufferImageCopy* copyRegions); | 245 const VkBufferImageCopy* copyRegions); |
| 246 | 246 |
| 247 void copyBufferToImage(const GrVkGpu* gpu, | 247 void copyBufferToImage(const GrVkGpu* gpu, |
| 248 GrVkTransferBuffer* srcBuffer, | 248 GrVkTransferBuffer* srcBuffer, |
| 249 GrVkImage* dstImage, | 249 GrVkImage* dstImage, |
| 250 VkImageLayout dstLayout, | 250 VkImageLayout dstLayout, |
| 251 uint32_t copyRegionCount, | 251 uint32_t copyRegionCount, |
| 252 const VkBufferImageCopy* copyRegions); | 252 const VkBufferImageCopy* copyRegions); |
| 253 | 253 |
| 254 void updateBuffer(GrVkGpu* gpu, |
| 255 GrVkBuffer* dstBuffer, |
| 256 VkDeviceSize dstOffset, |
| 257 VkDeviceSize dataSize, |
| 258 const void* data); |
| 259 |
| 254 void submitToQueue(const GrVkGpu* gpu, VkQueue queue, GrVkGpu::SyncQueue syn
c); | 260 void submitToQueue(const GrVkGpu* gpu, VkQueue queue, GrVkGpu::SyncQueue syn
c); |
| 255 bool finished(const GrVkGpu* gpu) const; | 261 bool finished(const GrVkGpu* gpu) const; |
| 256 | 262 |
| 257 private: | 263 private: |
| 258 explicit GrVkPrimaryCommandBuffer(VkCommandBuffer cmdBuffer) | 264 explicit GrVkPrimaryCommandBuffer(VkCommandBuffer cmdBuffer) |
| 259 : INHERITED(cmdBuffer) | 265 : INHERITED(cmdBuffer) |
| 260 , fSubmitFence(VK_NULL_HANDLE) {} | 266 , fSubmitFence(VK_NULL_HANDLE) {} |
| 261 | 267 |
| 262 void onFreeGPUData(const GrVkGpu* gpu) const override; | 268 void onFreeGPUData(const GrVkGpu* gpu) const override; |
| 263 | 269 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 281 } | 287 } |
| 282 | 288 |
| 283 void onFreeGPUData(const GrVkGpu* gpu) const override {} | 289 void onFreeGPUData(const GrVkGpu* gpu) const override {} |
| 284 | 290 |
| 285 friend class GrVkPrimaryCommandBuffer; | 291 friend class GrVkPrimaryCommandBuffer; |
| 286 | 292 |
| 287 typedef GrVkCommandBuffer INHERITED; | 293 typedef GrVkCommandBuffer INHERITED; |
| 288 }; | 294 }; |
| 289 | 295 |
| 290 #endif | 296 #endif |
| OLD | NEW |