| 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 "SkFontHost.h" | |
| 11 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 12 #include "SkRandom.h" | 11 #include "SkRandom.h" |
| 13 #include "SkString.h" | 12 #include "SkString.h" |
| 14 #include "SkTemplates.h" | 13 #include "SkTemplates.h" |
| 15 | 14 |
| 16 enum FontQuality { | 15 enum FontQuality { |
| 17 kBW, | 16 kBW, |
| 18 kAA, | 17 kAA, |
| 19 kLCD | 18 kLCD |
| 20 }; | 19 }; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 135 |
| 137 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA); ) | 136 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA); ) |
| 138 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kAA); ) | 137 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kAA); ) |
| 139 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kAA); ) | 138 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kAA); ) |
| 140 | 139 |
| 141 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kLCD); ) | 140 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kLCD); ) |
| 142 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kLCD); ) | 141 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kLCD); ) |
| 143 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kLCD); ) | 142 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kLCD); ) |
| 144 | 143 |
| 145 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA, true); ) | 144 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA, true); ) |
| OLD | NEW |