aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkDiscretePathEffect.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-18 10:00:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-18 10:00:32 -0700
commit9fbee18f691a0afed1e38a851048ce06063505ed (patch)
treecd647dad4bae251bbbadea7fdd85b8a4b22cecc7 /include/effects/SkDiscretePathEffect.h
parent1195260e22fc2e9c92b435491d4d19108a20df5c (diff)
switch patheffects over to sk_sp
Diffstat (limited to 'include/effects/SkDiscretePathEffect.h')
-rw-r--r--include/effects/SkDiscretePathEffect.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/effects/SkDiscretePathEffect.h b/include/effects/SkDiscretePathEffect.h
index a49e2d89a7..78d4516ee6 100644
--- a/include/effects/SkDiscretePathEffect.h
+++ b/include/effects/SkDiscretePathEffect.h
@@ -29,9 +29,13 @@ public:
they can pass in a different seedAssist to get a
different set of path segments.
*/
+ static sk_sp<SkPathEffect> Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist = 0);
+
+#ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
static SkPathEffect* Create(SkScalar segLength, SkScalar deviation, uint32_t seedAssist = 0) {
- return new SkDiscretePathEffect(segLength, deviation, seedAssist);
+ return Make(segLength, deviation, seedAssist).release();
}
+#endif
virtual bool filterPath(SkPath* dst, const SkPath& src,
SkStrokeRec*, const SkRect*) const override;