| 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 #define TILE(x, width) (((x) & 0xFFFF) * width >> 16) | 16 #define TILE(x, width) (((x) & 0xFFFF) * width >> 16) |
| 16 | 17 |
| 17 class InterpBench : public Benchmark { | 18 class InterpBench : public Benchmark { |
| 18 enum { | 19 enum { |
| 19 kBuffer = 128, | 20 kBuffer = 128, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 typedef InterpBench INHERITED; | 162 typedef InterpBench INHERITED; |
| 162 }; | 163 }; |
| 163 | 164 |
| 164 /////////////////////////////////////////////////////////////////////////////// | 165 /////////////////////////////////////////////////////////////////////////////// |
| 165 | 166 |
| 166 DEF_BENCH( return new Fixed16D16Interp(); ) | 167 DEF_BENCH( return new Fixed16D16Interp(); ) |
| 167 DEF_BENCH( return new Fixed32D32Interp(); ) | 168 DEF_BENCH( return new Fixed32D32Interp(); ) |
| 168 DEF_BENCH( return new Fixed16D48Interp(); ) | 169 DEF_BENCH( return new Fixed16D48Interp(); ) |
| 169 DEF_BENCH( return new FloatInterp(); ) | 170 DEF_BENCH( return new FloatInterp(); ) |
| 170 DEF_BENCH( return new DoubleInterp(); ) | 171 DEF_BENCH( return new DoubleInterp(); ) |
| OLD | NEW |