Index: tests/TextBlobCacheTest.cpp |
diff --git a/tests/TextBlobCacheTest.cpp b/tests/TextBlobCacheTest.cpp |
index 53489e2ce6689c9fabb24e98f8f626eb86b55cd8..8f95cf00e755dc8122e158ef9e68f465460a51d0 100644 |
--- a/tests/TextBlobCacheTest.cpp |
+++ b/tests/TextBlobCacheTest.cpp |
@@ -99,11 +99,12 @@ |
set->getStyle(j, &fs, nullptr); |
// We use a typeface which randomy returns unexpected mask formats to fuzz |
- sk_sp<SkTypeface> orig(set->createTypeface(j)); |
+ SkAutoTUnref<SkTypeface> orig(set->createTypeface(j)); |
if (normal) { |
paint.setTypeface(orig); |
} else { |
- paint.setTypeface(sk_make_sp<SkRandomTypeface>(orig, paint, true)); |
+ SkAutoTUnref<SkTypeface> typeface(new SkRandomTypeface(orig, paint, true)); |
+ paint.setTypeface(typeface); |
} |
SkTextBlobBuilder builder; |