Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index e605856b70c8def874426897ed70d60f23541928..cb6bcf75fd7fa284276828679b24dc2df888e1c5 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -616,6 +616,15 @@ void GrResourceCache::notifyFlushOccurred() { |
} |
} |
+void GrResourceCache::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const { |
+ for (int i = 0; i < fNonpurgeableResources.count(); ++i) { |
+ fNonpurgeableResources[i]->dumpMemoryStatistics(traceMemoryDump); |
+ } |
+ for (int i = 0; i < fPurgeableQueue.count(); ++i) { |
+ fPurgeableQueue.at(i)->dumpMemoryStatistics(traceMemoryDump); |
+ } |
+} |
+ |
#ifdef SK_DEBUG |
void GrResourceCache::validate() const { |
// Reduce the frequency of validations for large resource counts. |