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

Unified Diff: tools/VisualBench/VisualBenchmarkStream.cpp

Issue 1409603004: Add NVPR to VisualBench (Closed) Base URL: https://skia.googlesource.com/skia.git@vb5
Patch Set: tweaks Created 5 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/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 235200a761295a69e9e8f84478eba33a5941e25f..906aab27886d44d9fbbaaf6bb6954595b3c33e6d 100644
--- a/tools/VisualBench/VisualBenchmarkStream.cpp
+++ b/tools/VisualBench/VisualBenchmarkStream.cpp
@@ -7,13 +7,14 @@
*/
#include <VisualBench/VisualBenchmarkStream.h>
-#include "CpuWrappedBenchmark.h"
+#include <VisualBench/WrappedBenchmark.h>
#include "GMBench.h"
#include "SkOSFile.h"
#include "SkPath.h"
#include "SkPictureRecorder.h"
#include "SkStream.h"
#include "sk_tool_utils.h"
+#include "VisualFlags.h"
#include "VisualSKPBench.h"
DEFINE_bool(cpu, false, "Run in CPU mode?");
@@ -115,8 +116,12 @@ Benchmark* VisualBenchmarkStream::next() {
bench->unref();
}
}
+
+ // TODO move this all to --config
if (bench && FLAGS_cpu) {
bench = new CpuWrappedBenchmark(bench);
+ } else if (bench && FLAGS_nvpr) {
+ bench = new NvprWrappedBenchmark(bench, 4);
}
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