Index: src/effects/SkColorFilterImageFilter.cpp |
diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp |
index 63d5942f6a5ceacc07a15cb62d4cd3c3a40e5a19..cae2d6067f66f5e6f68756654329588d1538b491 100644 |
--- a/src/effects/SkColorFilterImageFilter.cpp |
+++ b/src/effects/SkColorFilterImageFilter.cpp |
@@ -79,8 +79,7 @@ sk_sp<SkSpecialImage> SkColorFilterImageFilter::onFilterImage(SkSpecialImage* so |
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(bounds)); |
if (!surf) { |
return nullptr; |
} |