Index: third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
index 780d5675245257450b0af5714daf1d93716f5652..9cd14249aeded8b95df5c3257acb794f750b749f 100644 |
--- a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
@@ -38,6 +38,7 @@ |
#include "platform/fonts/FontDescription.h" |
#include "platform/fonts/FontFaceCreationParams.h" |
#include "platform/fonts/SimpleFontData.h" |
+#include "platform/graphics/skia/SkiaUtils.h" |
#include "public/platform/Platform.h" |
#include "public/platform/linux/WebSandboxSupport.h" |
#include "wtf/Assertions.h" |
@@ -54,7 +55,7 @@ static PassRefPtr<SkTypeface> typefaceForFontconfigInterfaceIdAndTtcIndex(int fo |
SkFontConfigInterface::FontIdentity fontIdentity; |
fontIdentity.fID = fontconfigInterfaceId; |
fontIdentity.fTTCIndex = ttcIndex; |
- return adoptRef(fci->createTypeface(fontIdentity)); |
+ return blink::fromSkSp(fci->makeTypeface(fontIdentity)); |
} |
#endif |