aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapDevice.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-09-16 12:27:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-16 12:27:55 -0700
commit3375c8047e7f10e6bf9a2ce1c2e8b0df08c56024 (patch)
tree1700a3011bd609708deee59218cfe2b0d63f63cf /src/core/SkBitmapDevice.cpp
parent1e78fc4ed2a1ef9f049311696ebd0a26e1c3782d (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/core/SkBitmapDevice.cpp')
-rw-r--r--src/core/SkBitmapDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index 2711004aef..3af47f6e96 100644
--- a/src/core/SkBitmapDevice.cpp
+++ b/src/core/SkBitmapDevice.cpp
@@ -386,9 +386,9 @@ bool SkBitmapDevice::filterTextFlags(const SkPaint& paint, TextFlags* flags) {
paint.isFakeBoldText() ||
paint.getStyle() != SkPaint::kFill_Style ||
!SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) {
- // 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