Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: third_party/WebKit/Source/web/win/WebFontRendering.cpp

Issue 2618443002: Remove use of legacy SkFontMgr factories. (Closed)
Patch Set: Forward declare when possible. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/win/WebFontRendering.cpp
diff --git a/third_party/WebKit/Source/web/win/WebFontRendering.cpp b/third_party/WebKit/Source/web/win/WebFontRendering.cpp
index 4d468805b16b6c7d7799b41015d4152cc3a518f5..56f73fd903e87956900533862c247fd6118fa989 100644
--- a/third_party/WebKit/Source/web/win/WebFontRendering.cpp
+++ b/third_party/WebKit/Source/web/win/WebFontRendering.cpp
@@ -9,9 +9,8 @@
namespace blink {
// static
-void WebFontRendering::setSkiaFontManager(SkFontMgr* fontMgr) {
- WTF::adopted(fontMgr);
- FontCache::setFontManager(sk_ref_sp(fontMgr));
+void WebFontRendering::setSkiaFontManager(sk_sp<SkFontMgr> fontMgr) {
+ FontCache::setFontManager(std::move(fontMgr));
}
// static
« no previous file with comments | « third_party/WebKit/Source/web/linux/WebFontRendering.cpp ('k') | third_party/WebKit/public/web/linux/WebFontRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698