| 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 #include "Benchmark.h" | 8 #include "Benchmark.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 11 #include "SkPath.h" | |
| 12 #include "SkRandom.h" | 11 #include "SkRandom.h" |
| 13 #include "SkShader.h" | 12 #include "SkShader.h" |
| 14 #include "SkString.h" | 13 #include "SkString.h" |
| 15 | 14 |
| 16 enum Flags { | 15 enum Flags { |
| 17 kBig_Flag = 1 << 0, | 16 kBig_Flag = 1 << 0, |
| 18 kAA_Flag = 1 << 1 | 17 kAA_Flag = 1 << 1 |
| 19 }; | 18 }; |
| 20 | 19 |
| 21 #define FLAGS00 Flags(0) | 20 #define FLAGS00 Flags(0) |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Don't have default path renderer for conics yet on GPU, so must use AA | 230 // Don't have default path renderer for conics yet on GPU, so must use AA |
| 232 // DEF_BENCH( return new ConicPathBench(FLAGS00); ) | 231 // DEF_BENCH( return new ConicPathBench(FLAGS00); ) |
| 233 // DEF_BENCH( return new ConicPathBench(FLAGS01); ) | 232 // DEF_BENCH( return new ConicPathBench(FLAGS01); ) |
| 234 DEF_BENCH( return new ConicPathBench(FLAGS10); ) | 233 DEF_BENCH( return new ConicPathBench(FLAGS10); ) |
| 235 DEF_BENCH( return new ConicPathBench(FLAGS11); ) | 234 DEF_BENCH( return new ConicPathBench(FLAGS11); ) |
| 236 | 235 |
| 237 DEF_BENCH( return new CubicPathBench(FLAGS00); ) | 236 DEF_BENCH( return new CubicPathBench(FLAGS00); ) |
| 238 DEF_BENCH( return new CubicPathBench(FLAGS01); ) | 237 DEF_BENCH( return new CubicPathBench(FLAGS01); ) |
| 239 DEF_BENCH( return new CubicPathBench(FLAGS10); ) | 238 DEF_BENCH( return new CubicPathBench(FLAGS10); ) |
| 240 DEF_BENCH( return new CubicPathBench(FLAGS11); ) | 239 DEF_BENCH( return new CubicPathBench(FLAGS11); ) |
| OLD | NEW |