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 "Resources.h" | 8 #include "Resources.h" |
9 #include "SkCommandLineFlags.h" | 9 #include "SkCommandLineFlags.h" |
| 10 #include "SkFixed.h" |
10 #include "SkFontMgr_android_parser.h" | 11 #include "SkFontMgr_android_parser.h" |
11 #include "Test.h" | 12 #include "Test.h" |
12 | 13 |
13 #include <cmath> | 14 #include <cmath> |
14 #include <cstdio> | 15 #include <cstdio> |
15 | 16 |
16 DECLARE_bool(verboseFontMgr); | 17 DECLARE_bool(verboseFontMgr); |
17 | 18 |
18 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { | 19 int CountFallbacks(SkTDArray<FontFamily*> fontFamilies) { |
19 int countOfFallbackFonts = 0; | 20 int countOfFallbackFonts = 0; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ValidateLoadedFonts(v22FontFamilies, "Roboto-Thin.ttf", reporter); | 207 ValidateLoadedFonts(v22FontFamilies, "Roboto-Thin.ttf", reporter); |
207 } else { | 208 } else { |
208 resourcesMissing = true; | 209 resourcesMissing = true; |
209 } | 210 } |
210 v22FontFamilies.deleteAll(); | 211 v22FontFamilies.deleteAll(); |
211 | 212 |
212 if (resourcesMissing) { | 213 if (resourcesMissing) { |
213 SkDebugf("---- Resource files missing for FontConfigParser test\n"); | 214 SkDebugf("---- Resource files missing for FontConfigParser test\n"); |
214 } | 215 } |
215 } | 216 } |
OLD | NEW |