diff options
author | Ben Wagner <bungeman@google.com> | 2018-05-11 13:43:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-11 20:54:47 +0000 |
commit | 9b161a9f248abc8ec321a37e3abccc85ad489c40 (patch) | |
tree | 7f0ff482368bae09f30d00969cd8720919084998 | |
parent | 67f98b90153b6adb99406f2c0df720e3779f0938 (diff) |
Don't limit glyph mask format for path effect.
This removes code which sets the mask format of a scaler context to a8
in the presence of a path effect. This is overly limiting as both a1 and
lcd16 are supported.
Change-Id: I2a9ae88eac6a80ba1307dbac3d903041a9a93bf2
Reviewed-on: https://skia-review.googlesource.com/127398
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
-rw-r--r-- | src/core/SkScalerContext.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index 8e452ef05b..7644d45afc 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp @@ -983,10 +983,6 @@ void SkScalerContext::MakeRecAndEffects(const SkPaint& paint, } new (effects) SkScalerContextEffects{paint}; - if (effects->fPathEffect) { - rec->fMaskFormat = SkMask::kA8_Format; // force antialiasing when we do the scan conversion - // seems like we could support kLCD as well at this point... - } if (effects->fMaskFilter) { // Pre-blend is not currently applied to filtered text. // The primary filter is blur, for which contrast makes no sense, |