OLD | NEW |
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 #include "Benchmark.h" | 8 #include "Benchmark.h" |
9 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
| 10 #include "SkFixed.h" |
10 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
11 #include "SkPaint.h" | 12 #include "SkPaint.h" |
12 #include "SkRandom.h" | 13 #include "SkRandom.h" |
13 #include "SkString.h" | 14 #include "SkString.h" |
14 | 15 |
15 static float sk_fsel(float pred, float result_ge, float result_lt) { | 16 static float sk_fsel(float pred, float result_ge, float result_lt) { |
16 return pred >= 0 ? result_ge : result_lt; | 17 return pred >= 0 ? result_ge : result_lt; |
17 } | 18 } |
18 | 19 |
19 static float fast_floor(float x) { | 20 static float fast_floor(float x) { |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 | 600 |
600 DEF_BENCH( return new FloorBench(false); ) | 601 DEF_BENCH( return new FloorBench(false); ) |
601 DEF_BENCH( return new FloorBench(true); ) | 602 DEF_BENCH( return new FloorBench(true); ) |
602 | 603 |
603 DEF_BENCH( return new CLZBench(false); ) | 604 DEF_BENCH( return new CLZBench(false); ) |
604 DEF_BENCH( return new CLZBench(true); ) | 605 DEF_BENCH( return new CLZBench(true); ) |
605 | 606 |
606 DEF_BENCH( return new NormalizeBench(); ) | 607 DEF_BENCH( return new NormalizeBench(); ) |
607 | 608 |
608 DEF_BENCH( return new FixedMathBench(); ) | 609 DEF_BENCH( return new FixedMathBench(); ) |
OLD | NEW |