Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: src/core/SkGraphics.cpp

Issue 1313793004: [tracing] Add support for skia caches to dump memory stats (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Commit missed files. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkGlyphCache.cpp ('k') | src/core/SkResourceCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/core/SkGlyphCache.cpp ('k') | src/core/SkResourceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698