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

Side by Side Diff: bench/nanobench.h

Issue 1603063005: Adding support for parsing extended gpu config parameters in nanobench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Adding support for parsing gpu config parameters in nanobench Created 4 years, 11 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 | « no previous file | bench/nanobench.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 nanobench_DEFINED 8 #ifndef nanobench_DEFINED
9 #define nanobench_DEFINED 9 #define nanobench_DEFINED
10 10
11 #include "Benchmark.h" 11 #include "Benchmark.h"
12 #include "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 #include "SkSurface.h" 13 #include "SkSurface.h"
14 #include "SkTypes.h" 14 #include "SkTypes.h"
15 15
16 #if SK_SUPPORT_GPU 16 #if SK_SUPPORT_GPU
17 #include "GrContextFactory.h" 17 #include "GrContextFactory.h"
18 #endif 18 #endif
19 19
20 class ResultsWriter; 20 class ResultsWriter;
21 class SkBitmap; 21 class SkBitmap;
22 class SkCanvas; 22 class SkCanvas;
23 23
24 struct Config { 24 struct Config {
25 const char* name; 25 SkString name;
26 Benchmark::Backend backend; 26 Benchmark::Backend backend;
27 SkColorType color; 27 SkColorType color;
28 SkAlphaType alpha; 28 SkAlphaType alpha;
29 int samples; 29 int samples;
30 #if SK_SUPPORT_GPU 30 #if SK_SUPPORT_GPU
31 GrContextFactory::GLContextType ctxType; 31 GrContextFactory::GLContextType ctxType;
32 GrContextFactory::GLContextOptions ctxOptions; 32 GrContextFactory::GLContextOptions ctxOptions;
33 bool useDFText; 33 bool useDFText;
34 #else 34 #else
35 int bogusInt; 35 int bogusInt;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 SkCanvas* getCanvas() const { 81 SkCanvas* getCanvas() const {
82 if (!surface.get()) { 82 if (!surface.get()) {
83 return nullptr; 83 return nullptr;
84 } 84 }
85 return surface->getCanvas(); 85 return surface->getCanvas();
86 } 86 }
87 }; 87 };
88 88
89 #endif // nanobench_DEFINED 89 #endif // nanobench_DEFINED
OLDNEW
« no previous file with comments | « no previous file | bench/nanobench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698