Index: src/gpu/vk/GrVkSampler.h |
diff --git a/src/gpu/vk/GrVkSampler.h b/src/gpu/vk/GrVkSampler.h |
index 2aa5017aad2e024bce2d9e34d67f5209a9005e82..c0f60e4217ce088b8dc612af44f55f854be16c2c 100644 |
--- a/src/gpu/vk/GrVkSampler.h |
+++ b/src/gpu/vk/GrVkSampler.h |
@@ -28,6 +28,13 @@ public: |
static const uint16_t& GetKey(const GrVkSampler& sampler) { return sampler.fKey; } |
static uint32_t Hash(const uint16_t& key) { return key; } |
+ |
+#ifdef SK_TRACE_VK_RESOURCES |
+ void dumpInfo() const override { |
+ SkDebugf("GrVkSampler: %d (%d refs)\n", fSampler, this->getRefCnt()); |
+ } |
+#endif |
+ |
private: |
GrVkSampler(VkSampler sampler, uint16_t key) : INHERITED(), fSampler(sampler), fKey(key) {} |