From 4b004930490e416a2a404deee5de4b97e649a1c1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 12 Dec 2017 18:50:39 +0000 Subject: Roll DEPS for Skia to 40ca2087. Routine roll, with update for a removed API call. https://chromium.googlesource.com/skia/+log/d6c04d9a..40ca2087 Change-Id: I938b214fbb79cea6fed99edb5ca7d90a779bb8e8 Reviewed-on: https://pdfium-review.googlesource.com/20930 Reviewed-by: Cary Clark Commit-Queue: Lei Zhang --- core/fxge/cfx_facecache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge') diff --git a/core/fxge/cfx_facecache.cpp b/core/fxge/cfx_facecache.cpp index bc29293c3a..4f373fff89 100644 --- a/core/fxge/cfx_facecache.cpp +++ b/core/fxge/cfx_facecache.cpp @@ -321,8 +321,8 @@ CFX_TypeFace* CFX_FaceCache::GetDeviceCache(const CFX_Font* pFont) { #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ if (!m_pTypeface) { sk_sp customMgr(SkFontMgr_New_Custom_Empty()); - m_pTypeface.reset(customMgr->createFromStream( - new SkMemoryStream(pFont->GetFontData(), pFont->GetSize()))); + m_pTypeface = customMgr->makeFromStream(pdfium::MakeUnique( + pFont->GetFontData(), pFont->GetSize())); } #endif return m_pTypeface.get(); -- cgit v1.2.3