| OLD | NEW |
| 1 |
| 1 /* | 2 /* |
| 2 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 3 * | 4 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 6 */ | 7 */ |
| 7 | |
| 8 #include "Benchmark.h" | 8 #include "Benchmark.h" |
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
| 12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
| 13 #include "SkPath.h" | |
| 14 #include "SkRandom.h" | 13 #include "SkRandom.h" |
| 15 #include "SkShader.h" | 14 #include "SkShader.h" |
| 16 #include "SkString.h" | 15 #include "SkString.h" |
| 17 #include "SkTArray.h" | 16 #include "SkTArray.h" |
| 18 | 17 |
| 19 enum Flags { | 18 enum Flags { |
| 20 kStroke_Flag = 1 << 0, | 19 kStroke_Flag = 1 << 0, |
| 21 kBig_Flag = 1 << 1 | 20 kBig_Flag = 1 << 1 |
| 22 }; | 21 }; |
| 23 | 22 |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 DEF_BENCH( return new ConservativelyContainsBench(ConservativelyContainsBench::k
Oval_Type); ) | 1041 DEF_BENCH( return new ConservativelyContainsBench(ConservativelyContainsBench::k
Oval_Type); ) |
| 1043 | 1042 |
| 1044 | 1043 |
| 1045 // These seem to be optimized away, which is troublesome for timing. | 1044 // These seem to be optimized away, which is troublesome for timing. |
| 1046 /* | 1045 /* |
| 1047 DEF_BENCH( return new ConicBench_Chop5() ) | 1046 DEF_BENCH( return new ConicBench_Chop5() ) |
| 1048 DEF_BENCH( return new ConicBench_ComputeError() ) | 1047 DEF_BENCH( return new ConicBench_ComputeError() ) |
| 1049 DEF_BENCH( return new ConicBench_asQuadTol() ) | 1048 DEF_BENCH( return new ConicBench_asQuadTol() ) |
| 1050 DEF_BENCH( return new ConicBench_quadPow2() ) | 1049 DEF_BENCH( return new ConicBench_quadPow2() ) |
| 1051 */ | 1050 */ |
| OLD | NEW |