aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontNamesTest.cpp
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-07 15:46:29 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-07 15:46:29 +0000
commit246b1c266f2b0111aa58016829cf17de82614803 (patch)
treea9412d57387d8babd6b2fe730895bdd72781edc3 /tests/FontNamesTest.cpp
parent6f8e2c5e87bd6620ff5290a9a8b6d5b570366336 (diff)
Add getFamilyNames to SkTypeface.
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r--tests/FontNamesTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp
index ee0a1169f3..210a7cf310 100644
--- a/tests/FontNamesTest.cpp
+++ b/tests/FontNamesTest.cpp
@@ -164,7 +164,8 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) {
printf("[%s]\n", familyName.c_str());
}
- SkAutoTDelete<SkTypeface::LocalizedStrings> familyNamesIter(typeface->getFamilyNames());
+ SkAutoTUnref<SkTypeface::LocalizedStrings> familyNamesIter(
+ typeface->createFamilyNameIterator());
SkTypeface::LocalizedString familyNameLocalized;
while (familyNamesIter->next(&familyNameLocalized)) {
if (verbose) {