Index: include/gpu/GrContext.h |
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h |
index 64f4f6ce30e6609b0d8ca3b1dd99cdde35739a86..17751664196ce850022382e7d9b809744e953b7c 100644 |
--- a/include/gpu/GrContext.h |
+++ b/include/gpu/GrContext.h |
@@ -43,6 +43,7 @@ class GrTextureParams; |
class GrVertexBuffer; |
class GrStrokeInfo; |
class GrSoftwarePathRenderer; |
+class SkTraceMemoryDump; |
class SK_API GrContext : public SkRefCnt { |
public: |
@@ -358,6 +359,9 @@ public: |
to an array of 3 entries */ |
void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); |
+ /** Enumerates all cached GPU resources and dumps their memory to traceMemoryDump. */ |
+ void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; |
+ |
private: |
GrGpu* fGpu; |
const GrCaps* fCaps; |