| OLD | NEW |
| 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 Loading... |
| 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); ) |
| OLD | NEW |