diff options
author | reed <reed@google.com> | 2014-09-16 12:27:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-16 12:27:55 -0700 |
commit | 3375c8047e7f10e6bf9a2ce1c2e8b0df08c56024 (patch) | |
tree | 1700a3011bd609708deee59218cfe2b0d63f63cf /src/gpu/SkGpuDevice.cpp | |
parent | 1e78fc4ed2a1ef9f049311696ebd0a26e1c3782d (diff) |
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
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |