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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 941523002: Rename: background_is_transparent -> subpixel_rendering_enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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..fa883f331bc502e7158d26f7a91273d0b79fd95d 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -142,8 +142,8 @@ void UpdateRenderText(const Rect& rect,
else
render_text->SetHorizontalAlignment(ALIGN_LEFT);
- if (flags & Canvas::NO_SUBPIXEL_RENDERING)
- render_text->set_background_is_transparent(true);
+ render_text->set_subpixel_rendering_enabled(
+ (flags & Canvas::NO_SUBPIXEL_RENDERING) == 0);
render_text->SetColor(color);
const int font_style = font_list.GetFontStyle();

Powered by Google App Engine
This is Rietveld 408576698