Chromium Code Reviews| Index: gm/gmmain.cpp |
| diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
| index 165c5affb7278556732e91080e5931c2f20b7231..b5c4526dcd57ddbc389b6d155f8f5877650baaa9 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)) { |
|
robertphillips
2014/03/10 15:48:11
extra space somewhere?
jvanverth1
2014/03/10 18:42:06
Done.
|
| + GrContext* gr = grFactory->get(config.fGLContextType); |
| + |
| + gr->dumpFontCache(); |
| + } |
| + } |
| +#endif |
| + |
| delete grFactory; |
| #endif |
| SkGraphics::Term(); |