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

Unified Diff: tools/VisualBench/VisualBenchmarkStream.cpp

Issue 1444543002: Add visualbench option for nvpr stencil samples (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_fix_triple_buffer
Patch Set: Created 5 years, 1 month 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/VisualBench/VisualBench.cpp ('k') | tools/VisualBench/VisualFlags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualBenchmarkStream.cpp
diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp
index 2efb3c886e4477c5a9033a5ac9c6bca7a186071e..cfeff751967e52835b604c8655cb16047a0cd610 100644
--- a/tools/VisualBench/VisualBenchmarkStream.cpp
+++ b/tools/VisualBench/VisualBenchmarkStream.cpp
@@ -131,8 +131,8 @@ Benchmark* VisualBenchmarkStream::next() {
// TODO move this all to --config
if (bench && FLAGS_cpu) {
bench = new CpuWrappedBenchmark(fSurfaceProps, bench);
- } else if (bench && FLAGS_nvpr) {
- bench = new NvprWrappedBenchmark(fSurfaceProps, bench, 4);
+ } else if (bench && 0 != FLAGS_nvpr) {
+ bench = new NvprWrappedBenchmark(fSurfaceProps, bench, FLAGS_nvpr);
}
fBenchmark.reset(bench);
« no previous file with comments | « tools/VisualBench/VisualBench.cpp ('k') | tools/VisualBench/VisualFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698