Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: tools/render_pictures_main.cpp

Issue 655263005: Build gpu stats tracking in dev builds. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up macro usage in render_pictures Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/bench_pictures_main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/render_pictures_main.cpp
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp
index 6faa81ac0eec75aa502fe48627ea3266b0294c15..91b6481b67359f4b0fb70f0c33027178c4cf5bc3 100644
--- a/tools/render_pictures_main.cpp
+++ b/tools/render_pictures_main.cpp
@@ -474,8 +474,7 @@ int tool_main(int argc, char** argv) {
SkDebugf("Failed to render %i pictures.\n", failures);
return 1;
}
-#if SK_SUPPORT_GPU
-#if GR_CACHE_STATS
+#if GR_CACHE_STATS && SK_SUPPORT_GPU
if (renderer->isUsingGpuDevice()) {
GrContext* ctx = renderer->getGrContext();
ctx->printCacheStats();
@@ -484,14 +483,15 @@ int tool_main(int argc, char** argv) {
#endif
}
#endif
-#if GR_GPU_STATS
+
+#if GR_GPU_STATS && SK_SUPPORT_GPU
if (FLAGS_gpuStats && renderer->isUsingGpuDevice()) {
GrContext* ctx = renderer->getGrContext();
SkDebugf("RenderTarget Binds: %d\n", ctx->gpuStats()->renderTargetBinds());
SkDebugf("Shader Compilations: %d\n", ctx->gpuStats()->shaderCompilations());
}
#endif
-#endif
+
if (FLAGS_writeJsonSummaryPath.count() == 1) {
// If there were any descriptions on the command line, insert them now.
for (int i=0; i<FLAGS_descriptions.count(); i++) {
« no previous file with comments | « tools/bench_pictures_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698