Index: src/gpu/vk/GrVkResourceProvider.cpp |
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp |
index c7a66caf4e027287fa5a7cf58e417d2d47ed0437..c83c6a4711d1ae0340b22b39e5116a5b37162b3e 100644 |
--- a/src/gpu/vk/GrVkResourceProvider.cpp |
+++ b/src/gpu/vk/GrVkResourceProvider.cpp |
@@ -15,7 +15,7 @@ |
#include "GrVkUtil.h" |
#ifdef SK_TRACE_VK_RESOURCES |
-SkTDynamicHash<GrVkResource, uint32_t> GrVkResource::fTrace; |
+GrVkResource::Trace GrVkResource::fTrace; |
SkRandom GrVkResource::fRandom; |
#endif |
@@ -314,16 +314,6 @@ void GrVkResourceProvider::destroyResources() { |
fUniformDescLayout = VK_NULL_HANDLE; |
} |
fUniformDescPool->unref(fGpu); |
- |
-#ifdef SK_TRACE_VK_RESOURCES |
- if (GrVkResource::fTrace.count()) { |
- SkTDynamicHash<GrVkResource, uint32_t>::Iter iter(&GrVkResource::fTrace); |
- for (; !iter.done(); ++iter) { |
- (*iter).dumpInfo(); |
- } |
- } |
- SkASSERT(0 == GrVkResource::fTrace.count()); |
-#endif |
} |
void GrVkResourceProvider::abandonResources() { |
@@ -368,16 +358,6 @@ void GrVkResourceProvider::abandonResources() { |
fUniformDescLayout = VK_NULL_HANDLE; |
fUniformDescPool->unrefAndAbandon(); |
- |
-#ifdef SK_TRACE_VK_RESOURCES |
- if (GrVkResource::fTrace.count()) { |
- SkTDynamicHash<GrVkResource, uint32_t>::Iter iter(&GrVkResource::fTrace); |
- for (; !iter.done(); ++iter) { |
- (*iter).dumpInfo(); |
- } |
- } |
- SkASSERT(0 == GrVkResource::fTrace.count()); |
-#endif |
} |
//////////////////////////////////////////////////////////////////////////////// |