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

Unified Diff: bench/nanobench.cpp

Issue 1612483002: Add pre_log option to nanobench; make this option default true in nanobench and dm. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Fix MacOS build. Created 4 years, 11 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 | « no previous file | dm/DM.cpp » ('j') | tools/flags/SkCommonFlags.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 7efd858c5cd5a8a0e761c399a839fa6964526e2b..bc3bbb45234689ca69e077c387ce75d59d258059 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -1119,6 +1119,12 @@ int nanobench_main() {
SkCanvas* canvas = target->getCanvas();
const char* config = target->config.name;
+ if (FLAGS_pre_log) {
+ SkDebugf("Running %s\t%s\n"
+ , bench->getUniqueName()
+ , config);
+ }
+
target->setup();
bench->perCanvasPreDraw(canvas);
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | tools/flags/SkCommonFlags.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698