Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index 51bf54839c166caec5d1729ed32c7ab907e91d6a..38164999159176a59bc49baf7930179b02309fd9 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -365,7 +365,7 @@ |
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 Create(intervals.get(), SkToInt(count), phase); |
} |
return nullptr; |
} |
@@ -386,9 +386,9 @@ |
////////////////////////////////////////////////////////////////////////////////////////////////// |
-sk_sp<SkPathEffect> SkDashPathEffect::Make(const SkScalar intervals[], int count, SkScalar phase) { |
+SkPathEffect* SkDashPathEffect::Create(const SkScalar intervals[], int count, SkScalar phase) { |
if (!SkDashPath::ValidDashPath(phase, intervals, count)) { |
return nullptr; |
} |
- return sk_sp<SkPathEffect>(new SkDashPathEffect(intervals, count, phase)); |
-} |
+ return new SkDashPathEffect(intervals, count, phase); |
+} |