Chromium Code Reviews| 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()); |
|
robertphillips
2016/09/21 18:44:09
Don't we have to be a bit more careful here and al
Brian Osman
2016/09/21 19:00:31
This doesn't actually do anything to the raster ba
|
| - 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) { |