Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index b7745e27bf2d7a290fba28614df9a688e40e285d..10c8a0b17b183bafd23cd36bf5fb7ac83c9352d1 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -113,6 +113,7 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, |
SkAutoTUnref<GrTexture> tex(SkGpuBlurUtils::GaussianBlur(inputTexture->getContext(), |
inputTexture, |
false, |
+ source->props().allowSRGBInputs(), |
SkRect::Make(dstBounds), |
&inputBoundsF, |
sigma.x(), |
@@ -124,7 +125,7 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, |
return SkSpecialImage::MakeFromGpu(source->internal_getProxy(), |
SkIRect::MakeWH(dstBounds.width(), dstBounds.height()), |
kNeedNewImageUniqueID_SpecialImage, |
- tex); |
+ tex, &source->props()); |
} |
#endif |
@@ -216,7 +217,7 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, |
return SkSpecialImage::MakeFromRaster(source->internal_getProxy(), |
SkIRect::MakeWH(dstBounds.width(), |
dstBounds.height()), |
- dst); |
+ dst, &source->props()); |
} |