Index: src/gpu/vk/GrVkBuffer.h |
diff --git a/src/gpu/vk/GrVkBuffer.h b/src/gpu/vk/GrVkBuffer.h |
index f7d43c796d592b7ca317afefe82506da71170859..0bfbecace101f039fac59f65b95332485c42789d 100644 |
--- a/src/gpu/vk/GrVkBuffer.h |
+++ b/src/gpu/vk/GrVkBuffer.h |
@@ -54,11 +54,12 @@ protected: |
class Resource : public GrVkResource { |
public: |
- Resource(VkBuffer buf, const GrVkAlloc& alloc) |
- : INHERITED(), fBuffer(buf), fAlloc(alloc) {} |
+ Resource(VkBuffer buf, const GrVkAlloc& alloc, Type type) |
+ : INHERITED(), fBuffer(buf), fAlloc(alloc), fType(type) {} |
- VkBuffer fBuffer; |
- GrVkAlloc fAlloc; |
+ VkBuffer fBuffer; |
+ GrVkAlloc fAlloc; |
+ Type fType; |
private: |
void freeGPUData(const GrVkGpu* gpu) const; |