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

Unified Diff: content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc

Issue 1862693002: Replace skia::RefPtr with sk_sp<> in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 4 years, 8 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: content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc
diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc b/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc
index 8aed718a9f61fbe4f1eabdebc828014873d1803a..58d10551b9b268b36072ae0faa2c553fe285acc5 100644
--- a/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc
+++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc
@@ -14,7 +14,6 @@
#include "content/child/dwrite_font_proxy/dwrite_font_proxy_win.h"
#include "content/child/font_warmup_win.h"
#include "skia/ext/fontmgr_default_win.h"
-#include "skia/ext/refptr.h"
#include "third_party/WebKit/public/web/win/WebFontRendering.h"
#include "third_party/skia/include/ports/SkFontMgr.h"
#include "third_party/skia/include/ports/SkTypeface_win.h"
@@ -72,7 +71,7 @@ void InitializeDWriteFontProxy() {
&g_font_collection, factory.Get(), g_sender_override);
}
- skia::RefPtr<SkFontMgr> skia_font_manager = skia::AdoptRef(
+ sk_sp<SkFontMgr> skia_font_manager(
SkFontMgr_New_DirectWrite(factory.Get(), g_font_collection.Get()));
blink::WebFontRendering::setSkiaFontManager(skia_font_manager.get());

Powered by Google App Engine
This is Rietveld 408576698