Index: src/effects/SkMatrixConvolutionImageFilter.cpp |
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp |
index 2a32fd5cdcebcfa9ac58e227a2af53c49104d419..accebb5a4f085c5838e3f1df008a61340dd91ad9 100644 |
--- a/src/effects/SkMatrixConvolutionImageFilter.cpp |
+++ b/src/effects/SkMatrixConvolutionImageFilter.cpp |
@@ -74,7 +74,7 @@ SkImageFilter* SkMatrixConvolutionImageFilter::Create( |
tileMode, convolveAlpha, input, cropRect); |
} |
-SkFlattenable* SkMatrixConvolutionImageFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkMatrixConvolutionImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
SkISize kernelSize; |
kernelSize.fWidth = buffer.readInt(); |
@@ -96,8 +96,8 @@ SkFlattenable* SkMatrixConvolutionImageFilter::CreateProc(SkReadBuffer& buffer) |
kernelOffset.fY = buffer.readInt(); |
TileMode tileMode = (TileMode)buffer.readInt(); |
bool convolveAlpha = buffer.readBool(); |
- return Create(kernelSize, kernel.get(), gain, bias, kernelOffset, tileMode, convolveAlpha, |
- common.getInput(0).get(), &common.cropRect()); |
+ return sk_sp<SkFlattenable>(Create(kernelSize, kernel.get(), gain, bias, kernelOffset, tileMode, |
+ convolveAlpha, common.getInput(0).get(), &common.cropRect())); |
} |
void SkMatrixConvolutionImageFilter::flatten(SkWriteBuffer& buffer) const { |