From 3375c8047e7f10e6bf9a2ce1c2e8b0df08c56024 Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 16 Sep 2014 12:27:55 -0700 Subject: when we disable lcd for impl reasons, add kGenA8 to document the original intent BUG=skia: R=bungeman@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/572933004 --- src/gpu/SkGpuDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/SkGpuDevice.cpp') diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index b719f84278..0ec2b858c4 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1765,9 +1765,9 @@ bool SkGpuDevice::filterTextFlags(const SkPaint& paint, TextFlags* flags) { paint.getPathEffect() || paint.isFakeBoldText() || paint.getStyle() != SkPaint::kFill_Style) { - // turn off lcd + // turn off lcd, but turn on kGenA8 flags->fFlags = paint.getFlags() & ~SkPaint::kLCDRenderText_Flag; - flags->fHinting = paint.getHinting(); + flags->fFlags |= SkPaint::kGenA8FromLCD_Flag; return true; } // we're cool with the paint as is -- cgit v1.2.3