Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 8fc0ec1366c877bcdfdc02842cfa95558aa906a8..8d068072a7454dd0f1f914ecdcae587d86b815f7 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -344,6 +344,7 @@ sk_sp<SkSpecialImage> SkDisplacementMapEffect::onFilterImage(SkSpecialImage* sou |
if (!drawContext) { |
return nullptr; |
} |
+ paint.setGammaCorrect(drawContext->isGammaCorrect()); |
drawContext->drawRect(GrNoClip(), paint, matrix, SkRect::Make(colorBounds)); |