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

Unified Diff: ui/gfx/render_text.cc

Issue 493363006: Remove deferred fade shader workaround from RenderText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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_win.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 19bb69b8bf0681f9b48a3e0792202777363a5aaa..fd2f1ab0529242b96112c9f72588a75233c75844 100644
--- a/ui/gfx/render_text.cc
+++ b/ui/gfx/render_text.cc
@@ -216,6 +216,13 @@ void SkiaTextRenderer::SetFontRenderParams(const FontRenderParams& params,
ApplyRenderParams(params, background_is_transparent, &paint_);
}
+#if defined(OS_WIN)
+void SkiaTextRenderer::CorrectPaintFlags(bool background_is_transparent) {
+ paint_.setFlags(SkSetClearMask(paint_.getFlags(), background_is_transparent,
msw 2014/08/27 19:16:40 Can you make this part of SetFontRenderParams?
+ SkPaint::kGenA8FromLCD_Flag));
msw 2014/08/27 19:16:40 This is cited as a "hack for GDI -- do not use if
+}
+#endif // OS_WIN
+
void SkiaTextRenderer::SetTypeface(SkTypeface* typeface) {
paint_.setTypeface(typeface);
}
« no previous file with comments | « ui/gfx/render_text.h ('k') | ui/gfx/render_text_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698