Index: src/gpu/vk/GrVkBuffer.h |
diff --git a/src/gpu/vk/GrVkBuffer.h b/src/gpu/vk/GrVkBuffer.h |
index 985b586336107f9ae57cea1ccf835b35ad60dbf1..bb053ccce0df332dbdce0ef4e551742ebb077ea7 100644 |
--- a/src/gpu/vk/GrVkBuffer.h |
+++ b/src/gpu/vk/GrVkBuffer.h |
@@ -57,6 +57,11 @@ protected: |
Resource(VkBuffer buf, const GrVkAlloc& alloc, Type type) |
: INHERITED(), fBuffer(buf), fAlloc(alloc), fType(type) {} |
+#ifdef SK_TRACE_VK_RESOURCES |
+ void dumpInfo() const override { |
+ SkDebugf("GrVkBuffer: %d (%d refs)\n", fBuffer, this->getRefCnt()); |
+ } |
+#endif |
VkBuffer fBuffer; |
GrVkAlloc fAlloc; |
Type fType; |