Index: tools/bench_pictures_main.cpp |
diff --git a/tools/bench_pictures_main.cpp b/tools/bench_pictures_main.cpp |
index eea9644cf14658ceecf035406c53897aff012239..cd4b735d5e56943ead8fa8b215a8d337814deb4e 100644 |
--- a/tools/bench_pictures_main.cpp |
+++ b/tools/bench_pictures_main.cpp |
@@ -349,8 +349,13 @@ static void setup_benchmark(sk_tools::PictureBenchmark* benchmark) { |
} |
renderer->setDrawFilters(drawFilters, filtersName(drawFilters)); |
- benchmark->setPrintMin(FLAGS_min); |
- benchmark->setLogPerIter(FLAGS_logPerIter); |
+ if (FLAGS_logPerIter) { |
+ benchmark->setTimerResultType(TimerData::kPerIter_Result); |
+ } else if (FLAGS_min) { |
+ benchmark->setTimerResultType(TimerData::kMin_Result); |
+ } else { |
+ benchmark->setTimerResultType(TimerData::kAvg_Result); |
+ } |
benchmark->setRenderer(renderer); |
benchmark->setRepeats(FLAGS_repeat); |
benchmark->setLogger(&gLogger); |