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

Unified Diff: samplecode/SampleApp.cpp

Issue 1271033002: private iterator to visit all resource cache entries (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add iter for fontcache 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
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 2d12bfd67293bbaccc9107befbdb11d3ad6e317a..ca9b733f9573c3648d0f5a2d11c3b45bb03ae3d1 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -1415,9 +1415,18 @@ bool SampleWindow::previousSample() {
return true;
}
+#include "SkResourceCache.h"
+#include "SkGlyphCache.h"
bool SampleWindow::nextSample() {
fCurrIndex = (fCurrIndex + 1) % fSamples.count();
this->loadView((*fSamples[fCurrIndex])());
+
+ if (false) {
+ SkResourceCache::TestDumpMemoryStatistics();
+ SkGlyphCache::Dump();
+ SkDebugf("\n");
+ }
+
return true;
}
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/core/SkBitmapCache.cpp » ('j') | src/core/SkGlyphCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698