| Index: src/effects/Sk1DPathEffect.cpp
|
| diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp
|
| index 1d147bd78fb16ecdb3b75ddf4a830d5f5fb38947..4be6f975d3bfa792e7cec3fbe35a25c566699850 100644
|
| --- a/src/effects/Sk1DPathEffect.cpp
|
| +++ b/src/effects/Sk1DPathEffect.cpp
|
| @@ -153,7 +153,7 @@
|
| buffer.readPath(&path);
|
| SkScalar phase = buffer.readScalar();
|
| Style style = (Style)buffer.readUInt();
|
| - return SkPath1DPathEffect::Make(path, advance, phase, style).release();
|
| + return SkPath1DPathEffect::Create(path, advance, phase, style);
|
| }
|
| return nullptr;
|
| }
|
| @@ -204,10 +204,10 @@
|
|
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
| -sk_sp<SkPathEffect> SkPath1DPathEffect::Make(const SkPath& path, SkScalar advance, SkScalar phase,
|
| - Style style) {
|
| +SkPathEffect* SkPath1DPathEffect::Create(const SkPath& path, SkScalar advance, SkScalar phase,
|
| + Style style) {
|
| if (advance <= 0 || path.isEmpty()) {
|
| return nullptr;
|
| }
|
| - return sk_sp<SkPathEffect>(new SkPath1DPathEffect(path, advance, phase, style));
|
| -}
|
| + return new SkPath1DPathEffect(path, advance, phase, style);
|
| +}
|
|
|