Merge "Don't force transparent text to be high contrast"

This commit is contained in:
Chris Craik
2016-02-05 01:12:48 +00:00
committed by Android (Google) Code Review

View File

@@ -510,7 +510,7 @@ public:
size_t glyphCount = end - start;
if (CC_UNLIKELY(canvas->isHighContrastText())) {
if (CC_UNLIKELY(canvas->isHighContrastText() && paint.getAlpha() != 0)) {
// high contrast draw path
int color = paint.getColor();
int channelSum = SkColorGetR(color) + SkColorGetG(color) + SkColorGetB(color);