OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkGradientShader.h" | 10 #include "SkGradientShader.h" |
11 #include "SkPaint.h" | 11 #include "SkPaint.h" |
| 12 #include "SkPath.h" |
12 #include "SkString.h" | 13 #include "SkString.h" |
13 | 14 |
14 enum ColorPattern { | 15 enum ColorPattern { |
15 kWhite_ColorPattern, | 16 kWhite_ColorPattern, |
16 kBlue_ColorPattern, | 17 kBlue_ColorPattern, |
17 kOpaqueBitmap_ColorPattern, | 18 kOpaqueBitmap_ColorPattern, |
18 kAlphaBitmap_ColorPattern, | 19 kAlphaBitmap_ColorPattern, |
19 }; | 20 }; |
20 | 21 |
21 static const struct ColorPatternData{ | 22 static const struct ColorPatternData{ |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 192 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, |
192 (kOpaqueBitmap_ColorPattern, kOpaqueBitmap_ColorPat
tern, | 193 (kOpaqueBitmap_ColorPattern, kOpaqueBitmap_ColorPat
tern, |
193 kRect_DrawType)); ) | 194 kRect_DrawType)); ) |
194 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 195 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, |
195 (kAlphaBitmap_ColorPattern, kAlphaBitmap_ColorPatte
rn, | 196 (kAlphaBitmap_ColorPattern, kAlphaBitmap_ColorPatte
rn, |
196 kRect_DrawType)); ) | 197 kRect_DrawType)); ) |
197 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 198 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, |
198 (kOpaqueBitmap_ColorPattern, kAlphaBitmap_ColorPatt
ern, | 199 (kOpaqueBitmap_ColorPattern, kAlphaBitmap_ColorPatt
ern, |
199 kRect_DrawType)); ) | 200 kRect_DrawType)); ) |
200 | 201 |
OLD | NEW |