Skip to content

Commit

Permalink
Update Fuchsia font code to new Skia API (flutter#4179)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianosman authored Oct 6, 2017
1 parent 459f722 commit 01ab518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/engine/platform/fonts/fuchsia/FontCacheFuchsia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ sk_sp<SkTypeface> FontCache::createTypeface(
if (!data)
return nullptr;

return sk_sp<SkTypeface>(SkFontMgr::RefDefault()->createFromData(data.get()));
return SkFontMgr::RefDefault()->makeFromData(std::move(data));
}

} // namespace blink

0 comments on commit 01ab518

Please sign in to comment.