diff options
author | 2015-01-30 19:58:19 -0800 | |
---|---|---|
committer | 2015-01-30 19:58:19 -0800 | |
commit | a44e9b9842c8b1f68803171bff8695fa10312b5c (patch) | |
tree | 2083c17826c178ccb209535e5596d818b6cb15da /tests | |
parent | b6bed17ea81ff8fad68a7db79307bdcbcd4738a8 (diff) |
Update dump code in FontConfigParser test.
This code is still quite useful for debugging, but has bit rotted.
Update to match current structure of code.
Review URL: https://codereview.chromium.org/890073002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FontConfigParser.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/FontConfigParser.cpp b/tests/FontConfigParser.cpp index 4273b5eeab..ff72708be0 100644 --- a/tests/FontConfigParser.cpp +++ b/tests/FontConfigParser.cpp @@ -33,24 +33,19 @@ void DumpLoadedFonts(SkTDArray<FontFamily*> fontFamilies) { for (int i = 0; i < fontFamilies.count(); ++i) { SkDebugf("Family %d:\n", i); switch(fontFamilies[i]->fVariant) { - case SkPaintOptionsAndroid::kElegant_Variant: SkDebugf(" elegant"); break; - case SkPaintOptionsAndroid::kCompact_Variant: SkDebugf(" compact"); break; + case kElegant_FontVariant: SkDebugf(" elegant\n"); break; + case kCompact_FontVariant: SkDebugf(" compact\n"); break; default: break; } if (!fontFamilies[i]->fLanguage.getTag().isEmpty()) { - SkDebugf(" language: %s", fontFamilies[i]->fLanguage.getTag().c_str()); + SkDebugf(" language %s\n", fontFamilies[i]->fLanguage.getTag().c_str()); } for (int j = 0; j < fontFamilies[i]->fNames.count(); ++j) { SkDebugf(" name %s\n", fontFamilies[i]->fNames[j].c_str()); } for (int j = 0; j < fontFamilies[i]->fFonts.count(); ++j) { const FontFileInfo& ffi = fontFamilies[i]->fFonts[j]; - SkDebugf(" file (%d %s %d) %s\n", - ffi.fWeight, - ffi.fPaintOptions.getLanguage().getTag().isEmpty() ? "" : - ffi.fPaintOptions.getLanguage().getTag().c_str(), - ffi.fPaintOptions.getFontVariant(), - ffi.fFileName.c_str()); + SkDebugf(" file (%d) %s#%d\n", ffi.fWeight, ffi.fFileName.c_str(), ffi.fIndex); } } #endif // SK_DEBUG_FONTS |