Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index 8721dd756eee0ffbf0bbacc28bc66970db6f1d61..efa28fe975c3b45ffbf6680896ea8376895525cf 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -179,7 +179,6 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::filterImageGPU(SkSpecialImage* sour |
} |
GrPaint paint; |
- // SRGBTODO: AllowSRGBInputs? |
sk_sp<GrFragmentProcessor> bgFP; |
if (backgroundTex) { |
@@ -248,6 +247,7 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::filterImageGPU(SkSpecialImage* sour |
if (!drawContext) { |
return nullptr; |
} |
+ paint.setAllowSRGBInputs(drawContext->isGammaCorrect()); |
SkMatrix matrix; |
matrix.setTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |