OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * 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 |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "Benchmark.h" | 8 #include "Benchmark.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkColorShader.h" | 10 #include "SkColorShader.h" |
11 #include "SkFontHost.h" | |
12 #include "SkPaint.h" | 11 #include "SkPaint.h" |
13 #include "SkRandom.h" | 12 #include "SkRandom.h" |
14 #include "SkString.h" | 13 #include "SkString.h" |
15 #include "SkTemplates.h" | 14 #include "SkTemplates.h" |
16 | 15 |
17 #define STR "Hamburgefons" | 16 #define STR "Hamburgefons" |
18 | 17 |
19 enum FontQuality { | 18 enum FontQuality { |
20 kBW, | 19 kBW, |
21 kAA, | 20 kAA, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 }; | 88 }; |
90 | 89 |
91 /////////////////////////////////////////////////////////////////////////////// | 90 /////////////////////////////////////////////////////////////////////////////// |
92 | 91 |
93 DEF_BENCH( return new ShaderMaskBench(true, kBW); ) | 92 DEF_BENCH( return new ShaderMaskBench(true, kBW); ) |
94 DEF_BENCH( return new ShaderMaskBench(false, kBW); ) | 93 DEF_BENCH( return new ShaderMaskBench(false, kBW); ) |
95 DEF_BENCH( return new ShaderMaskBench(true, kAA); ) | 94 DEF_BENCH( return new ShaderMaskBench(true, kAA); ) |
96 DEF_BENCH( return new ShaderMaskBench(false, kAA); ) | 95 DEF_BENCH( return new ShaderMaskBench(false, kAA); ) |
97 DEF_BENCH( return new ShaderMaskBench(true, kLCD); ) | 96 DEF_BENCH( return new ShaderMaskBench(true, kLCD); ) |
98 DEF_BENCH( return new ShaderMaskBench(false, kLCD); ) | 97 DEF_BENCH( return new ShaderMaskBench(false, kLCD); ) |
OLD | NEW |