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>
This commit is contained in:
parent
67f98b9015
commit
9b161a9f24
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user