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(); |