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