Index: src/effects/SkPictureImageFilter.cpp |
diff --git a/src/effects/SkPictureImageFilter.cpp b/src/effects/SkPictureImageFilter.cpp |
index 6539104a305659fa88d666ca9bdb5e5c736294eb..bfe26b62c556b165e5c1d788b7749ca7c69f98e1 100644 |
--- a/src/effects/SkPictureImageFilter.cpp |
+++ b/src/effects/SkPictureImageFilter.cpp |
@@ -118,7 +118,8 @@ |
SkASSERT(!bounds.isEmpty()); |
- 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; |
} |
@@ -166,8 +167,10 @@ |
sk_sp<SkSpecialImage> localImg; |
{ |
- sk_sp<SkSpecialSurface> localSurface(source->makeSurface(ctx.outputProperties(), |
- localIBounds.size())); |
+ const SkImageInfo info = SkImageInfo::MakeN32(localIBounds.width(), localIBounds.height(), |
+ kPremul_SkAlphaType); |
+ |
+ sk_sp<SkSpecialSurface> localSurface(source->makeSurface(info)); |
if (!localSurface) { |
return; |
} |