aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/VisualBench/VisualBenchmarkStream.cpp
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-11-24 09:20:24 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-24 09:20:24 -0800
commitbaf8fcbb1b7eb89d5190df804bbda33c2622eb88 (patch)
treeffebe9e43c35dccc605d3eafd6f51d095622d80a /tools/VisualBench/VisualBenchmarkStream.cpp
parent0f6cca8a2070b974368652ec04b6003e9205a8a3 (diff)
Add offscreen mode to visualbench
Replaces "nvpr mode" with "offscreen mode" and a flag to enable/ disable nvpr. Assigns new config names to the various combinations of flags and begins printing them with the bench results in order to match nanobench. BUG=skia: Review URL: https://codereview.chromium.org/1473253002
Diffstat (limited to 'tools/VisualBench/VisualBenchmarkStream.cpp')
-rw-r--r--tools/VisualBench/VisualBenchmarkStream.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp
index 7f072e8ecb..183da75b50 100644
--- a/tools/VisualBench/VisualBenchmarkStream.cpp
+++ b/tools/VisualBench/VisualBenchmarkStream.cpp
@@ -21,7 +21,6 @@
#include "GrContext.h"
#endif
-DEFINE_bool(cpu, false, "Run in CPU mode?");
DEFINE_string2(match, m, nullptr,
"[~][^]substring[$] [...] of bench name to run.\n"
"Multiple matches may be separated by spaces.\n"
@@ -137,8 +136,8 @@ Benchmark* VisualBenchmarkStream::next() {
// TODO move this all to --config
if (bench && FLAGS_cpu) {
bench = new CpuWrappedBenchmark(fSurfaceProps, bench);
- } else if (bench && 0 != FLAGS_nvpr) {
- bench = new NvprWrappedBenchmark(fSurfaceProps, bench, FLAGS_nvpr);
+ } else if (bench && FLAGS_offscreen) {
+ bench = new GpuWrappedBenchmark(fSurfaceProps, bench, FLAGS_msaa);
}
fBenchmark.reset(bench);