Index: tests/TextBlobCacheTest.cpp |
diff --git a/tests/TextBlobCacheTest.cpp b/tests/TextBlobCacheTest.cpp |
index 23f45a4cad22b57ddd7626a6ad69f4bd87669b01..cbc6b99f84d5a8df6f549c0f0ce500ec5d855f3f 100644 |
--- a/tests/TextBlobCacheTest.cpp |
+++ b/tests/TextBlobCacheTest.cpp |
@@ -99,12 +99,11 @@ static void text_blob_cache_inner(skiatest::Reporter* reporter, GrContext* conte |
set->getStyle(j, &fs, nullptr); |
// We use a typeface which randomy returns unexpected mask formats to fuzz |
- SkAutoTUnref<SkTypeface> orig(set->createTypeface(j)); |
+ sk_sp<SkTypeface> orig(set->createTypeface(j)); |
if (normal) { |
paint.setTypeface(orig); |
} else { |
- SkAutoTUnref<SkTypeface> typeface(new SkRandomTypeface(orig, paint, true)); |
- paint.setTypeface(typeface); |
+ paint.setTypeface(sk_make_sp<SkRandomTypeface>(orig, paint, true)); |
} |
SkTextBlobBuilder builder; |