diff options
author | 2016-09-20 09:56:23 -0700 | |
---|---|---|
committer | 2016-09-20 09:56:23 -0700 | |
commit | 3e6cf87b5cf48323efbf146e734bbadc7efb5078 (patch) | |
tree | 4031fc33b029a5602d1b80a61569a3e3169051e9 /src/effects/SkMorphologyImageFilter.cpp | |
parent | 9d54afc38b171c01a03b34e773d154fcf83d97dc (diff) |
Cleanup some sRGB TODOs, mostly around setting GrPaint flags correctly
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2358433004
Review-Url: https://codereview.chromium.org/2358433004
Diffstat (limited to 'src/effects/SkMorphologyImageFilter.cpp')
-rw-r--r-- | src/effects/SkMorphologyImageFilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp index ebce1b3c5d..4e6032fa5a 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); |