Don't force transparent text to be high contrast

bug:26142378

Change-Id: Ia6c9111d9b84d2a5d3385d08c586ac12c9b14dc0
This commit is contained in:
Chris Craik
2016-02-04 17:01:54 -08:00
parent 37fd29f284
commit edf71a96c9

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);