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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 867003002: Cache gfx::RenderText instances in views::Label. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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: ui/gfx/canvas_skia.cc
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc
index 73f5992406cbed173b8676ea7863fbd7c616a1d6..865c82533986a9854ec7baae1d05e30cc43853b9 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -143,7 +143,7 @@ void UpdateRenderText(const Rect& rect,
render_text->SetHorizontalAlignment(ALIGN_LEFT);
if (flags & Canvas::NO_SUBPIXEL_RENDERING)
- render_text->set_background_is_transparent(true);
+ render_text->set_subpixel_rendering_enabled(false);
render_text->SetColor(color);
const int font_style = font_list.GetFontStyle();

Powered by Google App Engine
This is Rietveld 408576698