Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index 517aa3a88d297fc39924d9371f69d422d26a6e90..ec4fd939fa65f2a37beedf77c6538dd74c583479 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -581,12 +581,12 @@ void SkBlurMaskFilterImpl::computeFastBounds(const SkRect& src, |
src.fRight + pad, src.fBottom + pad); |
} |
-SkFlattenable* SkBlurMaskFilterImpl::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkBlurMaskFilterImpl::CreateProc(SkReadBuffer& buffer) { |
const SkScalar sigma = buffer.readScalar(); |
const unsigned style = buffer.readUInt(); |
const unsigned flags = buffer.readUInt(); |
if (style <= kLastEnum_SkBlurStyle) { |
- return SkBlurMaskFilter::Create((SkBlurStyle)style, sigma, flags); |
+ return sk_sp<SkFlattenable>(SkBlurMaskFilter::Create((SkBlurStyle)style, sigma, flags)); |
} |
return nullptr; |
} |