| Index: src/effects/SkMorphologyImageFilter.cpp
|
| diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
|
| index ebce1b3c5d0144b3bd782062b86eaeb9de475643..4e6032fa5a18115840c1b8389e6bf4486ba24cfc 100644
|
| --- a/src/effects/SkMorphologyImageFilter.cpp
|
| +++ b/src/effects/SkMorphologyImageFilter.cpp
|
| @@ -394,7 +394,7 @@ static void apply_morphology_rect(GrDrawContext* drawContext,
|
| float bounds[2],
|
| Gr1DKernelEffect::Direction direction) {
|
| GrPaint paint;
|
| - // SRGBTODO: AllowSRGBInputs?
|
| + paint.setAllowSRGBInputs(drawContext->isGammaCorrect());
|
| paint.addColorFragmentProcessor(GrMorphologyEffect::Make(texture,
|
| direction,
|
| radius,
|
| @@ -414,7 +414,7 @@ static void apply_morphology_rect_no_bounds(GrDrawContext* drawContext,
|
| GrMorphologyEffect::MorphologyType morphType,
|
| Gr1DKernelEffect::Direction direction) {
|
| GrPaint paint;
|
| - // SRGBTODO: AllowSRGBInputs?
|
| + paint.setAllowSRGBInputs(drawContext->isGammaCorrect());
|
| paint.addColorFragmentProcessor(GrMorphologyEffect::Make(texture, direction, radius,
|
| morphType));
|
| paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
|
|
|