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

Unified Diff: tools/VisualBench/VisualBench.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/CpuWrappedBenchmark.h ('k') | tools/VisualBench/VisualBenchmarkStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualBench.cpp
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp
index 39d249197b18ad1ad667bab47d7667d72cc4b85a..9cc2ec1c3bcd5941421c0abfe97eca8bf7064e60 100644
--- a/tools/VisualBench/VisualBench.cpp
+++ b/tools/VisualBench/VisualBench.cpp
@@ -84,8 +84,10 @@ void VisualBench::resetContext() {
fInterface.reset(GrGLCreateNativeInterface());
- // TODO use the GLContext creation factories
- fInterface.reset(GrGLInterfaceRemoveNVPR(fInterface));
+ // TODO use the GLContext creation factories and also set this all up in configs
+ if (!FLAGS_nvpr) {
+ fInterface.reset(GrGLInterfaceRemoveNVPR(fInterface));
+ }
SkASSERT(fInterface);
// setup contexts
« no previous file with comments | « tools/VisualBench/CpuWrappedBenchmark.h ('k') | tools/VisualBench/VisualBenchmarkStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698