SkXfermode::Mode filterMode;
SkScalar matrix[20];
SkBitmap colorTransformTable;
+ grPaint->resetColorFilter();
if (colorFilter != NULL && colorFilter->asColorMode(&color, &filterMode)) {
grPaint->fColorMatrixEnabled = false;
if (!constantColor) {
} else {
SkColor filtered = colorFilter->filterColor(skPaint.getColor());
grPaint->fColor = SkColor2GrColor(filtered);
- grPaint->resetColorFilter();
}
} else if (colorFilter != NULL && colorFilter->asColorMatrix(matrix)) {
grPaint->fColorMatrixEnabled = true;
colorSampler->reset();
colorSampler->setCustomStage(SkNEW_ARGS(GrColorTableEffect, (texture)))->unref();
- } else {
- grPaint->resetColorFilter();
}
return true;
}