Index: src/core/SkImageFilter.cpp |
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp |
index 9373dc1a1d3cc5f28badce7355f32ef9cea59990..be48ca17ba101b231b7708af7ef7804bcef583f5 100644 |
--- a/src/core/SkImageFilter.cpp |
+++ b/src/core/SkImageFilter.cpp |
@@ -348,9 +348,9 @@ |
// around it. |
static sk_sp<SkSpecialImage> pad_image(SkSpecialImage* src, |
int newWidth, int newHeight, int offX, int offY) { |
- // We explicitly want to operate in the source's color space here |
- SkImageFilter::OutputProperties outProps(src->getColorSpace()); |
- sk_sp<SkSpecialSurface> surf(src->makeSurface(outProps, SkISize::Make(newWidth, newHeight))); |
+ |
+ SkImageInfo info = SkImageInfo::MakeN32Premul(newWidth, newHeight); |
+ sk_sp<SkSpecialSurface> surf(src->makeSurface(info)); |
if (!surf) { |
return nullptr; |
} |