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"); |