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

Side by Side Diff: bench/HairlinePathBench.cpp

Issue 172103007: Fix bench to compile when SK_SUPPORTS_GPU is not provided as a compiler option (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 2013 Google Inc. 2 * Copyright 2013 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 #if SK_SUPPORT_GPU
9 #include "GrTest.h"
10 #include "GrDrawTargetCaps.h"
11 #endif
12 #include "SkBenchmark.h" 8 #include "SkBenchmark.h"
13 #include "SkCanvas.h" 9 #include "SkCanvas.h"
14 #include "SkPaint.h" 10 #include "SkPaint.h"
15 #include "SkRandom.h" 11 #include "SkRandom.h"
16 #include "SkShader.h" 12 #include "SkShader.h"
17 #include "SkString.h" 13 #include "SkString.h"
18 14
15 #if SK_SUPPORT_GPU
16 #include "GrTest.h"
17 #include "GrDrawTargetCaps.h"
18 #endif
19
19 enum Flags { 20 enum Flags {
20 kBig_Flag = 1 << 0, 21 kBig_Flag = 1 << 0,
21 kAA_Flag = 1 << 1 22 kAA_Flag = 1 << 1
22 }; 23 };
23 24
24 #define FLAGS00 Flags(0) 25 #define FLAGS00 Flags(0)
25 #define FLAGS01 Flags(kBig_Flag) 26 #define FLAGS01 Flags(kBig_Flag)
26 #define FLAGS10 Flags(kAA_Flag) 27 #define FLAGS10 Flags(kAA_Flag)
27 #define FLAGS11 Flags(kBig_Flag | kAA_Flag) 28 #define FLAGS11 Flags(kBig_Flag | kAA_Flag)
28 29
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // Don't have default path renderer for conics yet on GPU, so must use AA 249 // Don't have default path renderer for conics yet on GPU, so must use AA
249 // DEF_BENCH( return new ConicPathBench(FLAGS00); ) 250 // DEF_BENCH( return new ConicPathBench(FLAGS00); )
250 // DEF_BENCH( return new ConicPathBench(FLAGS01); ) 251 // DEF_BENCH( return new ConicPathBench(FLAGS01); )
251 DEF_BENCH( return new ConicPathBench(FLAGS10); ) 252 DEF_BENCH( return new ConicPathBench(FLAGS10); )
252 DEF_BENCH( return new ConicPathBench(FLAGS11); ) 253 DEF_BENCH( return new ConicPathBench(FLAGS11); )
253 254
254 DEF_BENCH( return new CubicPathBench(FLAGS00); ) 255 DEF_BENCH( return new CubicPathBench(FLAGS00); )
255 DEF_BENCH( return new CubicPathBench(FLAGS01); ) 256 DEF_BENCH( return new CubicPathBench(FLAGS01); )
256 DEF_BENCH( return new CubicPathBench(FLAGS10); ) 257 DEF_BENCH( return new CubicPathBench(FLAGS10); )
257 DEF_BENCH( return new CubicPathBench(FLAGS11); ) 258 DEF_BENCH( return new CubicPathBench(FLAGS11); )
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698