Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index 0c82b1655e7755584050ae489e325e9f1a6aaf08..c8d2154b8669f4587e636e06dff851d5406652dd 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -390,7 +390,7 @@ void SkLightingImageFilterInternal::drawRect(GrDrawContext* drawContext, |
const SkIRect& bounds) const { |
SkRect srcRect = dstRect.makeOffset(SkIntToScalar(bounds.x()), SkIntToScalar(bounds.y())); |
GrPaint paint; |
- // SRGBTODO: AllowSRGBInputs? |
+ paint.setAllowSRGBInputs(drawContext->isGammaCorrect()); |
sk_sp<GrFragmentProcessor> fp(this->makeFragmentProcessor(src, matrix, srcBounds, |
boundaryMode)); |
paint.addColorFragmentProcessor(std::move(fp)); |