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

Unified Diff: ui/gfx/render_text.cc

Issue 2066323002: Remove SK_SUPPORT_LEGACY_TYPEFACE_PTR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Mac fixes Created 4 years, 6 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/render_text.h ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.cc
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc
index a56f8a76ff1ef78f21b491fa703a6d98123c2945..d41c6abd8382445fdc316b1455639a9afd0efa60 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -240,8 +240,8 @@ void SkiaTextRenderer::SetFontRenderParams(const FontRenderParams& params,
ApplyRenderParams(params, subpixel_rendering_suppressed, &paint_);
}
-void SkiaTextRenderer::SetTypeface(SkTypeface* typeface) {
- paint_.setTypeface(typeface);
+void SkiaTextRenderer::SetTypeface(sk_sp<SkTypeface> typeface) {
+ paint_.setTypeface(std::move(typeface));
}
void SkiaTextRenderer::SetTextSize(SkScalar size) {
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698