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

Side by Side Diff: bench/nanobench.h

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 8 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
(...skipping 11 matching lines...) Expand all
22 class SkCanvas; 22 class SkCanvas;
23 23
24 struct Config { 24 struct Config {
25 SkString 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 SkColorProfileType profile; 29 SkColorProfileType profile;
30 int samples; 30 int samples;
31 #if SK_SUPPORT_GPU 31 #if SK_SUPPORT_GPU
32 GrContextFactory::GLContextType ctxType; 32 sk_gpu_test::GrContextFactory::GLContextType ctxType;
33 GrContextFactory::GLContextOptions ctxOptions; 33 sk_gpu_test::GrContextFactory::GLContextOptions ctxOptions;
34 bool useDFText; 34 bool useDFText;
35 #else 35 #else
36 int bogusInt; 36 int bogusInt;
37 int bogusIntOption; 37 int bogusIntOption;
38 bool bogusBool; 38 bool bogusBool;
39 #endif 39 #endif
40 }; 40 };
41 41
42 struct Target { 42 struct Target {
43 explicit Target(const Config& c) : config(c) { } 43 explicit Target(const Config& c) : config(c) { }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 SkCanvas* getCanvas() const { 82 SkCanvas* getCanvas() const {
83 if (!surface.get()) { 83 if (!surface.get()) {
84 return nullptr; 84 return nullptr;
85 } 85 }
86 return surface->getCanvas(); 86 return surface->getCanvas();
87 } 87 }
88 }; 88 };
89 89
90 #endif // nanobench_DEFINED 90 #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