| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "VisualFlags.h" | 8 #include "VisualFlags.h" |
| 9 | 9 |
| 10 DEFINE_int32(msaa, 0, "Number of msaa samples."); | 10 SkString Configs::Config::humanReadable() const { |
| 11 DEFINE_bool(nvpr, false, "Run in NVPR mode?"); | 11 SkString out; |
| 12 switch (fType) { |
| 13 case kGpu_Type: |
| 14 out.append("gpu"); |
| 15 break; |
| 16 case kMsaa_Type: |
| 17 out.appendf("msaa_%d", fNumSamples); |
| 18 break; |
| 19 case kNvpr_Type: |
| 20 out.appendf("nvprmsaa_%d", fNumSamples); |
| 21 break; |
| 22 case kCpu_Type: |
| 23 out.append("cpu"); |
| 24 break; |
| 25 } |
| 26 return out; |
| 27 } |
| 28 |
| 29 DEFINE_string(config, "gpu", "Options: " |
| 30 "cpu gpu msaa16 msaa4 nvprmsaa16 nvprmsaa4"); |
| OLD | NEW |