aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkMorphologyImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-09-20 09:56:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-20 09:56:23 -0700
commit3e6cf87b5cf48323efbf146e734bbadc7efb5078 (patch)
tree4031fc33b029a5602d1b80a61569a3e3169051e9 /src/effects/SkMorphologyImageFilter.cpp
parent9d54afc38b171c01a03b34e773d154fcf83d97dc (diff)
Cleanup some sRGB TODOs, mostly around setting GrPaint flags correctly
Diffstat (limited to 'src/effects/SkMorphologyImageFilter.cpp')
-rw-r--r--src/effects/SkMorphologyImageFilter.cpp4
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);