Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 6e65050a657e1d4557212d5dfd50eb186cf3fbeb..2870f31ef1859445218851166bcf926872f3e8cb 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -346,7 +346,9 @@ sk_sp<SkImage> SkImage::makeWithFilter(const SkImageFilter* filter, const SkIRec |
SkAutoTUnref<SkImageFilterCache> cache( |
SkImageFilterCache::Create(SkImageFilterCache::kDefaultTransientSize)); |
- SkImageFilter::Context context(SkMatrix::I(), clipBounds, cache.get()); |
+ SkImageFilter::OutputProperties outputProperties(as_IB(this)->onImageInfo().colorSpace()); |
+ SkImageFilter::Context context(SkMatrix::I(), clipBounds, cache.get(), outputProperties); |
+ |
sk_sp<SkSpecialImage> result = |
filter->filterImage(srcSpecialImage.get(), context, offset); |