Index: src/gpu/vk/GrVkResource.h |
diff --git a/src/gpu/vk/GrVkResource.h b/src/gpu/vk/GrVkResource.h |
index 6c08f4ee55c2eee7d29f1ad0dbda2df523afd3a6..d42ec70d765342b7d08876d4406f22187fcad4a4 100644 |
--- a/src/gpu/vk/GrVkResource.h |
+++ b/src/gpu/vk/GrVkResource.h |
@@ -15,9 +15,9 @@ |
class GrVkGpu; |
// uncomment to enable tracing of resource refs |
-//#ifdef SK_DEBUG |
-//#define SK_TRACE_VK_RESOURCES |
-//#endif |
+#ifdef SK_DEBUG |
+#define SK_TRACE_VK_RESOURCES |
+#endif |
/** \class GrVkResource |
@@ -121,6 +121,12 @@ public: |
} |
#endif |
+#ifdef SK_TRACE_VK_RESOURCES |
+ /** Output a human-readable dump of this resource's information |
+ */ |
+ virtual void dumpInfo() const = 0; |
+#endif |
+ |
private: |
/** Must be implemented by any subclasses. |
* Deletes any Vk data associated with this resource |