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

Side by Side Diff: tools/VisualBench/VisualFlags.h

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 unified diff | Download patch
« no previous file with comments | « tools/VisualBench/VisualBenchmarkStream.cpp ('k') | tools/VisualBench/VisualFlags.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 #ifndef VisualFlags_DEFINED 8 #ifndef VisualFlags_DEFINED
9 #define VisualFlags_DEFINED 9 #define VisualFlags_DEFINED
10 10
11 #include "SkCommandLineFlags.h" 11 #include "SkCommandLineFlags.h"
12 12
13 struct Configs {
14 struct Config {
15 enum Type {
16 kGpu_Type,
17 kMsaa_Type,
18 kNvpr_Type,
19 kCpu_Type,
20 };
21 Type fType;
22 int fNumSamples;
23
24 SkString humanReadable() const;
25 };
26 SkTArray<Config> fList;
27 int fIter;
28
29 Configs() { fIter = 0; }
30 Config& push_back() { return fList.push_back(); }
31 const Config& current() const { return fList[fIter]; }
32 bool next() { fIter++; return fIter >= fList.count(); }
33 };
34
13 DECLARE_string(config); 35 DECLARE_string(config);
14 DECLARE_int32(msaa);
15 DECLARE_bool(nvpr);
16 36
17 #endif 37 #endif
OLDNEW
« no previous file with comments | « tools/VisualBench/VisualBenchmarkStream.cpp ('k') | tools/VisualBench/VisualFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698