aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontNamesTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-11-04 11:49:42 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-04 16:55:38 +0000
commit342b7acc46550af5fbefc6f9313231ede11ed692 (patch)
tree1077b67b06a35c49e93fd9a210204c597a6239df /tests/FontNamesTest.cpp
parentd49128ab8ec6b3aadeb650074ddd8ddbdcce15eb (diff)
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 <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r--tests/FontNamesTest.cpp8
1 files changed, 4 insertions, 4 deletions
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<SkFontMgr> fm(SkFontMgr::RefDefault());
+ sk_sp<SkFontMgr> fm(SkFontMgr::RefDefault());
int count = SkMin32(fm->countFamilies(), MAX_FAMILIES);
for (int i = 0; i < count; ++i) {
- SkAutoTUnref<SkFontStyleSet> set(fm->createStyleSet(i));
+ sk_sp<SkFontStyleSet> set(fm->createStyleSet(i));
for (int j = 0; j < set->count(); ++j) {
SkString sname;
SkFontStyle fs;
set->getStyle(j, &fs, &sname);
- SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j));
+ sk_sp<SkTypeface> 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<SkTypeface::LocalizedStrings> familyNamesIter(
+ sk_sp<SkTypeface::LocalizedStrings> familyNamesIter(
typeface->createFamilyNameIterator());
SkTypeface::LocalizedString familyNameLocalized;
while (familyNamesIter->next(&familyNameLocalized)) {