From 342b7acc46550af5fbefc6f9313231ede11ed692 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 4 Nov 2016 11:49:42 -0400 Subject: tests: s/SkAutoTUnref/sk_sp/ BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4394 Change-Id: I088b3c6e2adff07abed1e8a50091cc0ec4a4109c Reviewed-on: https://skia-review.googlesource.com/4394 Reviewed-by: Ben Wagner Commit-Queue: Hal Canary --- tests/FontNamesTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/FontNamesTest.cpp') diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index 5c314e4e7e..e5dce32a1a 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -142,16 +142,16 @@ static void test_synthetic(skiatest::Reporter* reporter, bool verbose) { static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { static const SkFontTableTag nameTag = SkSetFourByteTag('n','a','m','e'); - SkAutoTUnref fm(SkFontMgr::RefDefault()); + sk_sp fm(SkFontMgr::RefDefault()); int count = SkMin32(fm->countFamilies(), MAX_FAMILIES); for (int i = 0; i < count; ++i) { - SkAutoTUnref set(fm->createStyleSet(i)); + sk_sp set(fm->createStyleSet(i)); for (int j = 0; j < set->count(); ++j) { SkString sname; SkFontStyle fs; set->getStyle(j, &fs, &sname); - SkAutoTUnref typeface(set->createTypeface(j)); + sk_sp typeface(set->createTypeface(j)); SkString familyName; typeface->getFamilyName(&familyName); @@ -159,7 +159,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { SkDebugf("[%s]\n", familyName.c_str()); } - SkAutoTUnref familyNamesIter( + sk_sp familyNamesIter( typeface->createFamilyNameIterator()); SkTypeface::LocalizedString familyNameLocalized; while (familyNamesIter->next(&familyNameLocalized)) { -- cgit v1.2.3