Index: src/effects/SkMorphologyImageFilter.cpp |
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp |
index b8d488423959ff6ea425cfe3b31b29c6846fcf31..82e47c50813de36e75294aabe1f5f93584890538 100644 |
--- a/src/effects/SkMorphologyImageFilter.cpp |
+++ b/src/effects/SkMorphologyImageFilter.cpp |
@@ -395,7 +395,7 @@ static void apply_morphology_rect(GrDrawContext* drawContext, |
float bounds[2], |
Gr1DKernelEffect::Direction direction) { |
GrPaint paint; |
- paint.setAllowSRGBInputs(drawContext->isGammaCorrect()); |
+ paint.setGammaCorrect(drawContext->isGammaCorrect()); |
paint.addColorFragmentProcessor(GrMorphologyEffect::Make(texture, |
direction, |
radius, |
@@ -415,7 +415,7 @@ static void apply_morphology_rect_no_bounds(GrDrawContext* drawContext, |
GrMorphologyEffect::MorphologyType morphType, |
Gr1DKernelEffect::Direction direction) { |
GrPaint paint; |
- paint.setAllowSRGBInputs(drawContext->isGammaCorrect()); |
+ paint.setGammaCorrect(drawContext->isGammaCorrect()); |
paint.addColorFragmentProcessor(GrMorphologyEffect::Make(texture, direction, radius, |
morphType)); |
paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |