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

Side by Side 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, 1 month 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 unified diff | Download patch
« no previous file with comments | « tools/VisualBench/VisualFlags.h ('k') | tools/VisualBench/VisualLightweightBenchModule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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");
OLDNEW
« 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