Index: src/core/SkMatrixImageFilter.cpp |
diff --git a/src/core/SkMatrixImageFilter.cpp b/src/core/SkMatrixImageFilter.cpp |
index 2e827d82a660bd16f2ce79a1291222955085d802..12efc64683b184741c1829aaeff0488e1b332928 100644 |
--- a/src/core/SkMatrixImageFilter.cpp |
+++ b/src/core/SkMatrixImageFilter.cpp |
@@ -70,9 +70,7 @@ sk_sp<SkSpecialImage> SkMatrixImageFilter::onFilterImage(SkSpecialImage* source, |
SkIRect dstBounds; |
dstRect.roundOut(&dstBounds); |
- const SkImageInfo info = SkImageInfo::MakeN32Premul(dstBounds.width(), dstBounds.height()); |
- |
- sk_sp<SkSpecialSurface> surf(input->makeSurface(info)); |
+ sk_sp<SkSpecialSurface> surf(input->makeSurface(ctx.outputProperties(), dstBounds.size())); |
if (!surf) { |
return nullptr; |
} |