Index: src/gpu/GrResourceCache.h |
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h |
index 2171420a43f696fcde1c7dce1c9a7a6be157fbd8..2412174121e55422a787eb468622679f2bd119f7 100644 |
--- a/src/gpu/GrResourceCache.h |
+++ b/src/gpu/GrResourceCache.h |
@@ -22,6 +22,7 @@ |
class GrCaps; |
class SkString; |
+class SkTraceMemoryDump; |
/** |
* Manages the lifetime of all GrGpuResource instances. |
@@ -178,7 +179,7 @@ public: |
fOverBudgetCB = overBudgetCB; |
fOverBudgetData = data; |
} |
- |
+ |
void notifyFlushOccurred(); |
#if GR_GPU_STATS |
@@ -188,6 +189,9 @@ public: |
// This function is for unit testing and is only defined in test tools. |
void changeTimestamp(uint32_t newTimestamp); |
+ // Enumerates all cached resources and dumps their details to traceMemoryDump. |
+ void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; |
+ |
private: |
/////////////////////////////////////////////////////////////////////////// |
/// @name Methods accessible via ResourceAccess |