Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index c7e4143e117de6bedfb654d10ff864ae12087cbe..d655c9484f5270327571fa4dada8a79a71be58b8 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -95,9 +95,7 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::onFilterImage(SkSpecialImage* sourc |
} |
#endif |
- const 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; |
} |