Added GPU resource cache stats printing to render_pictures

https://codereview.appspot.com/6492104/



git-svn-id: http://skia.googlecode.com/svn/trunk@5523 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-09-13 15:40:37 +00:00
Родитель 69fbc52e95
Коммит 163c84ba50
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -79,6 +79,10 @@ public:
return NULL;
}
}
GrContext* getGrContext() {
return fGrContext;
}
#endif
PictureRenderer()

Просмотреть файл

@ -289,6 +289,16 @@ int main(int argc, char* const argv[]) {
process_input(inputs[i], outputDir, *renderer);
}
#if SK_SUPPORT_GPU
#if GR_CACHE_STATS
if (renderer->isUsingGpuDevice()) {
GrContext* ctx = renderer->getGrContext();
ctx->printCacheStats();
}
#endif
#endif
SkDELETE(renderer);
SkGraphics::Term();
}