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

Unified Diff: gm/gmmain.cpp

Issue 178543007: Add new module for distance field generation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix warning Created 6 years, 9 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 | « no previous file | gyp/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gmmain.cpp
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 165c5affb7278556732e91080e5931c2f20b7231..de9e1a15a0566934abfcfc21be23863916b0a93c 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -46,6 +46,7 @@
#ifdef SK_DEBUG
static const bool kDebugOnly = true;
+#define GR_DUMP_FONT_CACHE 0
#else
static const bool kDebugOnly = false;
#endif
@@ -2408,6 +2409,18 @@ int tool_main(int argc, char** argv) {
}
#endif
+#if GR_DUMP_FONT_CACHE
+ for (int i = 0; i < configs.count(); i++) {
+ ConfigData config = gRec[configs[i]];
+
+ if (kGPU_Backend == config.fBackend) {
+ GrContext* gr = grFactory->get(config.fGLContextType);
+
+ gr->dumpFontCache();
+ }
+ }
+#endif
+
delete grFactory;
#endif
SkGraphics::Term();
« no previous file with comments | « no previous file | gyp/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698