Bug 1495282 - cherry-pick Skia fix for Mac font gamma. r=mstange

This commit is contained in:
Lee Salzman 2019-01-17 16:49:18 -05:00
parent 9c04886e64
commit b888841ef5

View File

@ -1447,7 +1447,7 @@ void SkScalerContext_Mac::generateImage(const SkGlyph& glyph) {
if ((glyph.fMaskFormat == SkMask::kLCD16_Format) ||
(glyph.fMaskFormat == SkMask::kA8_Format
&& requestSmooth
&& smooth_behavior() == SmoothBehavior::subpixel))
&& smooth_behavior() != SmoothBehavior::none))
{
const uint8_t* linear = gLinearCoverageFromCGLCDValue.data();