Chromium Code Reviews| 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); |
| } |