aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/Sk1DPathEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/Sk1DPathEffect.cpp')
-rw-r--r--src/effects/Sk1DPathEffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp
index 0d61632175..26cd046aa8 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;
}