diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-22 10:57:05 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-22 10:57:05 +0000 |
commit | 5f9f2f574fe9b195f5f3e40edeb2e28b673511fd (patch) | |
tree | bd72c6a33791bbb30d46483a68e3bc2e10c66fbd /gm | |
parent | 936fb954db7bc4c3212a4a104d747b07f496c82a (diff) |
Added resource cache debug output to help track changes
http://codereview.appspot.com/6463079/
git-svn-id: http://skia.googlecode.com/svn/trunk@5220 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gmmain.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index 07e57a48ba..feee33d002 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -1148,7 +1148,22 @@ int main(int argc, char * const argv[]) { for (int i = 0; i < failedTests.count(); ++i) { SkDebugf("\t\t%s\n", failedTests[i].c_str()); } + #if SK_SUPPORT_GPU + +#if SK_DEBUG + for (int i = 0; i < configs.count(); i++) { + ConfigData config = gRec[configs[i]]; + + if (kGPU_Backend == config.fBackend) { + GrContext* gr = grFactory->get(config.fGLContextType); + + SkDebugf("config: %s %x\n", config.fName, gr); + gr->printCacheStats(); + } + } +#endif + delete grFactory; #endif SkGraphics::Term(); |