aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-07 17:09:22 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-07 17:09:22 +0000
commit839702b61934914118ec557dd641be322eba3b5f (patch)
treea236520027e9a13b87d2b1df3f4e0f387b503ba5 /tests
parent488a337ea9673488530b01451470a2b89ec0a54f (diff)
Add getFamilyNames to SkTypeface.
Diffstat (limited to 'tests')
-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) {