Index: src/effects/SkImageSource.cpp |
diff --git a/src/effects/SkImageSource.cpp b/src/effects/SkImageSource.cpp |
index f3fc05491e1706d01f2ca6a9e11e9caf349620aa..f434de4aa0975ac655cf3990a2286ad8abb80cf9 100644 |
--- a/src/effects/SkImageSource.cpp |
+++ b/src/effects/SkImageSource.cpp |
@@ -93,11 +93,7 @@ sk_sp<SkSpecialImage> SkImageSource::onFilterImage(SkSpecialImage* source, const |
const SkIRect dstIRect = dstRect.roundOut(); |
- // SRGBTODO: Propagate SkColorType? |
- const SkImageInfo info = SkImageInfo::MakeN32(dstIRect.width(), dstIRect.height(), |
- kPremul_SkAlphaType); |
- |
- sk_sp<SkSpecialSurface> surf(source->makeSurface(info)); |
+ sk_sp<SkSpecialSurface> surf(source->makeSurface(ctx.outputProperties(), dstIRect.size())); |
if (!surf) { |
return nullptr; |
} |