Index: src/core/SkGraphics.cpp |
diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp |
index f8d8b09db404d5f9626e7b6066bcc26368da495d..e9dcadc180d279c2afcfadcf311b02e6d986eec0 100644 |
--- a/src/core/SkGraphics.cpp |
+++ b/src/core/SkGraphics.cpp |
@@ -12,6 +12,7 @@ |
#include "SkBlitter.h" |
#include "SkCanvas.h" |
#include "SkGeometry.h" |
+#include "SkGlyphCache.h" |
#include "SkMath.h" |
#include "SkMatrix.h" |
#include "SkOpts.h" |
@@ -19,6 +20,7 @@ |
#include "SkPathEffect.h" |
#include "SkPixelRef.h" |
#include "SkRefCnt.h" |
+#include "SkResourceCache.h" |
#include "SkRTConf.h" |
#include "SkScalerContext.h" |
#include "SkShader.h" |
@@ -64,6 +66,13 @@ void SkGraphics::Term() { |
/////////////////////////////////////////////////////////////////////////////// |
+void SkGraphics::DumpMemoryStatistics(SkTraceMemoryDump* dump) { |
+ SkResourceCache::DumpMemoryStatistics(dump); |
+ SkGlyphCache::DumpMemoryStatistics(dump); |
+} |
+ |
+/////////////////////////////////////////////////////////////////////////////// |
+ |
static const char kFontCacheLimitStr[] = "font-cache-limit"; |
static const size_t kFontCacheLimitLen = sizeof(kFontCacheLimitStr) - 1; |