Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index d98f105518c5119e430baee1b271d3b299ff8d45..23fb2cb53df2f9aac60e9f9ec27f5013198bf346 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -121,13 +121,14 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, |
inputBounds.offset(-inputOffset); |
dstBounds.offset(-inputOffset); |
sk_sp<GrDrawContext> drawContext(SkGpuBlurUtils::GaussianBlur( |
- context, |
- inputTexture.get(), |
- source->props().isGammaCorrect(), |
- dstBounds, |
- &inputBounds, |
- sigma.x(), |
- sigma.y())); |
+ context, |
+ inputTexture.get(), |
+ sk_ref_sp(source->getColorSpace()), |
+ source->props().isGammaCorrect(), |
+ dstBounds, |
+ &inputBounds, |
+ sigma.x(), |
+ sigma.y())); |
if (!drawContext) { |
return nullptr; |
} |