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

Unified Diff: ui/gfx/hud_font.cc

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « ui/gfx/hud_font.h ('k') | ui/gfx/skia_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/hud_font.cc
diff --git a/ui/gfx/hud_font.cc b/ui/gfx/hud_font.cc
index 8151778856b857a97add7e63e71de33c8448bc6a..881d17d19e952d2945d49064203ee53c80a06ccb 100644
--- a/ui/gfx/hud_font.cc
+++ b/ui/gfx/hud_font.cc
@@ -10,14 +10,14 @@
namespace gfx {
namespace {
-base::LazyInstance<skia::RefPtr<SkTypeface>> g_hud_typeface;
+base::LazyInstance<sk_sp<SkTypeface>> g_hud_typeface;
} // namespace
-void SetHudTypeface(skia::RefPtr<SkTypeface> typeface) {
+void SetHudTypeface(sk_sp<SkTypeface> typeface) {
g_hud_typeface.Get() = typeface;
}
-skia::RefPtr<SkTypeface> GetHudTypeface() {
+sk_sp<SkTypeface> GetHudTypeface() {
// nullptr is fine; caller will create its own in that case.
return g_hud_typeface.Get();
}
« no previous file with comments | « ui/gfx/hud_font.h ('k') | ui/gfx/skia_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698