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

Unified Diff: tools/VisualBench/VisualFlags.cpp

Issue 1413713006: Wire up configurations properly in VisualBench (Closed) Base URL: https://skia.googlesource.com/skia.git@detachattach
Patch Set: 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/VisualFlags.h ('k') | tools/VisualBench/VisualLightweightBenchModule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualFlags.cpp
diff --git a/tools/VisualBench/VisualFlags.cpp b/tools/VisualBench/VisualFlags.cpp
index 2b0e5499eda3bce5236dc53f55d049b9bf6408f2..eade49edbfaa2d78106b1d4d7a33354ffd31dd93 100644
--- a/tools/VisualBench/VisualFlags.cpp
+++ b/tools/VisualBench/VisualFlags.cpp
@@ -7,5 +7,24 @@
#include "VisualFlags.h"
-DEFINE_int32(msaa, 0, "Number of msaa samples.");
-DEFINE_bool(nvpr, false, "Run in NVPR mode?");
+SkString Configs::Config::humanReadable() const {
+ SkString out;
+ switch (fType) {
+ case kGpu_Type:
+ out.append("gpu");
+ break;
+ case kMsaa_Type:
+ out.appendf("msaa_%d", fNumSamples);
+ break;
+ case kNvpr_Type:
+ out.appendf("nvprmsaa_%d", fNumSamples);
+ break;
+ case kCpu_Type:
+ out.append("cpu");
+ break;
+ }
+ return out;
+}
+
+DEFINE_string(config, "gpu", "Options: "
+ "cpu gpu msaa16 msaa4 nvprmsaa16 nvprmsaa4");
« no previous file with comments | « tools/VisualBench/VisualFlags.h ('k') | tools/VisualBench/VisualLightweightBenchModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698