Index: src/effects/Sk1DPathEffect.cpp |
diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp |
index 0d616321755004bfc510549ae169679f9a4a1c12..26cd046aa8ad8390a23bbaab64f4cc8071db927d 100644 |
--- a/src/effects/Sk1DPathEffect.cpp |
+++ b/src/effects/Sk1DPathEffect.cpp |
@@ -145,14 +145,14 @@ SkScalar SkPath1DPathEffect::begin(SkScalar contourLength) const { |
return fInitialOffset; |
} |
-SkFlattenable* SkPath1DPathEffect::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkPath1DPathEffect::CreateProc(SkReadBuffer& buffer) { |
SkScalar advance = buffer.readScalar(); |
if (advance > 0) { |
SkPath path; |
buffer.readPath(&path); |
SkScalar phase = buffer.readScalar(); |
Style style = (Style)buffer.readUInt(); |
- return SkPath1DPathEffect::Make(path, advance, phase, style).release(); |
+ return SkPath1DPathEffect::Make(path, advance, phase, style); |
} |
return nullptr; |
} |