Index: src/gpu/vk/GrVkFramebuffer.h |
diff --git a/src/gpu/vk/GrVkFramebuffer.h b/src/gpu/vk/GrVkFramebuffer.h |
index 0f8a1c5282da740a5b95b76a05c4b1a0986ef186..e16ac225c590c7722443bc200f3be08385c48293 100644 |
--- a/src/gpu/vk/GrVkFramebuffer.h |
+++ b/src/gpu/vk/GrVkFramebuffer.h |
@@ -29,6 +29,12 @@ public: |
VkFramebuffer framebuffer() const { return fFramebuffer; } |
+#ifdef SK_TRACE_VK_RESOURCES |
+ void dumpInfo() const override { |
+ SkDebugf("GrVkFramebuffer: %d (%d refs)\n", fFramebuffer, this->getRefCnt()); |
+ } |
+#endif |
+ |
private: |
GrVkFramebuffer(VkFramebuffer framebuffer) : INHERITED(), fFramebuffer(framebuffer) {} |