Added GPU resource cache stats printing to bench & removed some noise from inst counting information

https://codereview.appspot.com/6497125/



git-svn-id: http://skia.googlecode.com/svn/trunk@5519 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-09-13 14:05:00 +00:00
parent 178a267a6c
commit 9d59420851

View File

@ -868,8 +868,18 @@ int main (int argc, char * const argv[]) {
logger.logProgress(SkString("\n"));
}
#if SK_SUPPORT_GPU
// need to clean up here rather than post-main to allow leak detection to work
gDebugGLHelper.cleanup();
#if GR_CACHE_STATS
gRealGLHelper.grContext()->printCacheStats();
#endif
// need to clean up here rather than post-main to allow leak detection to work
gRealGLHelper.cleanup();
gDebugGLHelper.cleanup();
gNullGLHelper.cleanup();
#if SK_ANGLE
gANGLEGLHelper.cleanup();
#endif // SK_ANGLE
#endif
return 0;
}