Index: third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp b/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp |
index c580ac0160534f2202c41b5317689ebc60b9e59e..7fe3bd901ce58f8dc28c6de1f79b3cde85be2744 100644 |
--- a/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp |
@@ -41,7 +41,7 @@ namespace blink { |
PassRefPtr<SimpleFontData> FontCache::fallbackFontForCharacter(const FontDescription& fontDescription, UChar32 c, const SimpleFontData*, FontFallbackPriority fallbackPriority) |
{ |
- RefPtr<SkFontMgr> fm = adoptRef(SkFontMgr::RefDefault()); |
+ sk_sp<SkFontMgr> fm(SkFontMgr::RefDefault()); |
AtomicString familyName = getFamilyNameForCharacter(fm.get(), c, fontDescription, fallbackPriority); |
if (familyName.isEmpty()) |
return getLastResortFallbackFont(fontDescription, DoNotRetain); |
@@ -77,7 +77,7 @@ AtomicString FontCache::getGenericFamilyNameForScript(const AtomicString& family |
return familyName; |
} |
- RefPtr<SkFontMgr> fm = adoptRef(SkFontMgr::RefDefault()); |
+ sk_sp<SkFontMgr> fm(SkFontMgr::RefDefault()); |
return getFamilyNameForCharacter(fm.get(), examplerChar, fontDescription, FontFallbackPriority::Text); |
} |