Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index 51bf54839c166caec5d1729ed32c7ab907e91d6a..90af32ec5b0fb6686699271f2c888704207a65d4 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -360,12 +360,12 @@ void SkDashPathEffect::flatten(SkWriteBuffer& buffer) const { |
buffer.writeScalarArray(fIntervals, fCount); |
} |
-SkFlattenable* SkDashPathEffect::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkDashPathEffect::CreateProc(SkReadBuffer& buffer) { |
const SkScalar phase = buffer.readScalar(); |
uint32_t count = buffer.getArrayCount(); |
SkAutoSTArray<32, SkScalar> intervals(count); |
if (buffer.readScalarArray(intervals.get(), count)) { |
- return Make(intervals.get(), SkToInt(count), phase).release(); |
+ return Make(intervals.get(), SkToInt(count), phase); |
} |
return nullptr; |
} |