aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapDevice.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-17 12:14:06 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-18 00:28:21 +0000
commita05e199cd962568ed0f5f413d66627e876740702 (patch)
tree63cbbce50932768de7cb8bf841458294bb84ec45 /src/core/SkBitmapDevice.cpp
parentf9bf7ac54788f649dc2aa24e0c18f0276d088316 (diff)
Remove text flag filtering from SkBitmapDevice.
The SkScaler context can do subpixel antialiasing for fake bold, path effects, and stroking. So don't disable LCD due to these reasons. Change-Id: I6688e96e7e3d2b3a1d610b3e46d87d33b9f08059 Reviewed-on: https://skia-review.googlesource.com/121881 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r--src/core/SkBitmapDevice.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index 4b7b3db37b..507dd352e4 100644
--- a/src/core/SkBitmapDevice.cpp
+++ b/src/core/SkBitmapDevice.cpp
@@ -550,12 +550,7 @@ class SkBitmapDeviceFilteredSurfaceProps {
public:
SkBitmapDeviceFilteredSurfaceProps(const SkBitmap& bitmap, const SkPaint& paint,
const SkSurfaceProps& surfaceProps) {
- if (kN32_SkColorType != bitmap.colorType() ||
- paint.getPathEffect() ||
- paint.isFakeBoldText() ||
- paint.getStyle() != SkPaint::kFill_Style ||
- !paint.isSrcOver())
- {
+ if (kN32_SkColorType != bitmap.colorType() || !paint.isSrcOver()) {
SkSurfaceProps* newPaint = fLazy.init(surfaceProps.flags(), kUnknown_SkPixelGeometry);
fSurfaceProps = newPaint;
} else {