Index: src/core/SkBitmapDevice.cpp |
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp |
index 4f8074d3a672ea0df255a09cc540b5c726e552fa..440de68345f4a2c67bd86531939de2ed9feb96d8 100644 |
--- a/src/core/SkBitmapDevice.cpp |
+++ b/src/core/SkBitmapDevice.cpp |
@@ -395,7 +395,8 @@ void SkBitmapDevice::drawSpecial(const SkDraw& draw, SkSpecialImage* srcImg, int |
matrix.postTranslate(SkIntToScalar(-x), SkIntToScalar(-y)); |
const SkIRect clipBounds = draw.fRC->getBounds().makeOffset(-x, -y); |
SkAutoTUnref<SkImageFilterCache> cache(this->getImageFilterCache()); |
- SkImageFilter::Context ctx(matrix, clipBounds, cache.get()); |
+ SkImageFilter::OutputProperties outputProperties(fBitmap.colorSpace()); |
+ SkImageFilter::Context ctx(matrix, clipBounds, cache.get(), outputProperties); |
sk_sp<SkSpecialImage> resultImg(filter->filterImage(srcImg, ctx, &offset)); |
if (resultImg) { |