Index: src/gpu/vk/GrVkPipeline.h |
diff --git a/src/gpu/vk/GrVkPipeline.h b/src/gpu/vk/GrVkPipeline.h |
index 0e818edadcb48fc15693b71169da453d44560d3d..bec4aeb6002fcec20333d4ca6d0de128370e6525 100644 |
--- a/src/gpu/vk/GrVkPipeline.h |
+++ b/src/gpu/vk/GrVkPipeline.h |
@@ -37,6 +37,11 @@ public: |
static void SetDynamicState(GrVkGpu*, GrVkCommandBuffer*, const GrPipeline&); |
+#ifdef SK_TRACE_VK_RESOURCES |
+ void dumpInfo() const override { |
+ SkDebugf("GrVkPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt()); |
+ } |
+#endif |
private: |
GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {} |