aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkToSRGBColorFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkToSRGBColorFilter.cpp')
-rw-r--r--src/effects/SkToSRGBColorFilter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/effects/SkToSRGBColorFilter.cpp b/src/effects/SkToSRGBColorFilter.cpp
index a9bd65c625..ba01c6b2c4 100644
--- a/src/effects/SkToSRGBColorFilter.cpp
+++ b/src/effects/SkToSRGBColorFilter.cpp
@@ -29,9 +29,7 @@ void SkToSRGBColorFilter::onAppendStages(SkRasterPipeline* p,
p->append(SkRasterPipeline::from_srgb);
} else if (fSrcColorSpace->isNumericalTransferFn(&srcFn)) {
auto copy = alloc->make<SkColorSpaceTransferFn>(srcFn);
- p->append(SkRasterPipeline::parametric_r, copy);
- p->append(SkRasterPipeline::parametric_g, copy);
- p->append(SkRasterPipeline::parametric_b, copy);
+ p->append(SkRasterPipeline::parametric, copy);
} else {
SkDEBUGFAIL("Looks like we got a table transfer function here, quite unexpectedly.");
// TODO: If we really need to handle this, we can, but I don't think Ganesh does.