From 01ab51832a699f55a5826e0b4f0c418c54de4da5 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Fri, 6 Oct 2017 13:17:16 -0400 Subject: [PATCH] Update Fuchsia font code to new Skia API (#4179) --- sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp b/sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp index de8de552b8ffc..7a197667b1988 100644 --- a/sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp +++ b/sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp @@ -133,7 +133,7 @@ sk_sp FontCache::createTypeface( if (!data) return nullptr; - return sk_sp(SkFontMgr::RefDefault()->createFromData(data.get())); + return SkFontMgr::RefDefault()->makeFromData(std::move(data)); } } // namespace blink