Index: src/gpu/vk/GrVkImage.h |
diff --git a/src/gpu/vk/GrVkImage.h b/src/gpu/vk/GrVkImage.h |
index eb0f7bf4fe99976f1a2bf8cff7639df2c4f5a324..fbf80f3bb0906f05cadce4f8ce02066ac1d9e1ce 100644 |
--- a/src/gpu/vk/GrVkImage.h |
+++ b/src/gpu/vk/GrVkImage.h |
@@ -41,6 +41,14 @@ public: |
typedef GrVkResource INHERITED; |
}; |
+ // for wrapped textures |
+ class BorrowedResource : public Resource { |
+ public: |
+ BorrowedResource(VkImage image, VkDeviceMemory alloc, Flags flags) |
+ : Resource(image, alloc, flags) {} |
+ private: |
+ void freeGPUData(const GrVkGpu* gpu) const override; |
+ }; |
GrVkImage(const Resource* imageResource) : fResource(imageResource) { |
if (imageResource->fFlags & Resource::kLinearTiling_Flag) { |