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..b532804319a26a49e614cc9a826071c1af80569c 100644 |
--- a/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp |
@@ -54,7 +54,7 @@ static PassRefPtr<SkTypeface> typefaceForFontconfigInterfaceIdAndTtcIndex(int fo |
SkFontConfigInterface::FontIdentity fontIdentity; |
fontIdentity.fID = fontconfigInterfaceId; |
fontIdentity.fTTCIndex = ttcIndex; |
- return adoptRef(fci->createTypeface(fontIdentity)); |
+ return adoptRef(fci->makeTypeface(fontIdentity).release()); |
f(malita)
2016/06/03 17:11:59
Nit: return fromSkSp(fci->makeTypeface(fontIdentit
bungeman-chromium
2016/06/03 18:28:18
Thanks, I thought something like this existed, but
|
} |
#endif |