Index: src/gpu/vk/GrVkCommandBuffer.h |
diff --git a/src/gpu/vk/GrVkCommandBuffer.h b/src/gpu/vk/GrVkCommandBuffer.h |
index b2f6ef013f73c8ebd89ffb5dcceb631be2c60e15..b513a47f29b6aef935a002ad28fd9d69aacd5778 100644 |
--- a/src/gpu/vk/GrVkCommandBuffer.h |
+++ b/src/gpu/vk/GrVkCommandBuffer.h |
@@ -127,14 +127,34 @@ public: |
const VkImageCopy* copyRegions); |
void blitImage(const GrVkGpu* gpu, |
- const GrVkImage::Resource* srcImage, |
+ const GrVkResource* srcResource, |
+ VkImage srcImage, |
VkImageLayout srcLayout, |
- const GrVkImage::Resource* dstImage, |
+ const GrVkResource* dstResource, |
+ VkImage dstImage, |
VkImageLayout dstLayout, |
uint32_t blitRegionCount, |
const VkImageBlit* blitRegions, |
VkFilter filter); |
+ void blitImage(const GrVkGpu* gpu, |
+ const GrVkImage& srcImage, |
+ const GrVkImage& dstImage, |
+ uint32_t blitRegionCount, |
+ const VkImageBlit* blitRegions, |
+ VkFilter filter) { |
+ this->blitImage(gpu, |
+ srcImage.resource(), |
+ srcImage.image(), |
+ srcImage.currentLayout(), |
+ dstImage.resource(), |
+ dstImage.image(), |
+ dstImage.currentLayout(), |
+ blitRegionCount, |
+ blitRegions, |
+ filter); |
+ } |
+ |
void copyImageToBuffer(const GrVkGpu* gpu, |
GrVkImage* srcImage, |
VkImageLayout srcLayout, |