Index: src/effects/SkPaintImageFilter.cpp |
diff --git a/src/effects/SkPaintImageFilter.cpp b/src/effects/SkPaintImageFilter.cpp |
index 8833629eed276007dc187de3847e14577ce938a0..0a0e4e92edf972b03c167acc8da5c43ed5f723a6 100644 |
--- a/src/effects/SkPaintImageFilter.cpp |
+++ b/src/effects/SkPaintImageFilter.cpp |
@@ -43,10 +43,7 @@ sk_sp<SkSpecialImage> SkPaintImageFilter::onFilterImage(SkSpecialImage* source, |
return nullptr; |
} |
- SkImageInfo info = SkImageInfo::MakeN32(bounds.width(), bounds.height(), |
- kPremul_SkAlphaType); |
- |
- sk_sp<SkSpecialSurface> surf(source->makeSurface(info)); |
+ sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), bounds.size())); |
if (!surf) { |
return nullptr; |
} |