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