aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/Sk1DPathEffect.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-02-20 14:18:27 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-20 14:18:27 -0800
commit00bea4ad310c4ec4dd95809b47ce3fbfa8fd0e1e (patch)
tree8c7e11efbc4c108252a219c763010d5035b10846 /include/effects/Sk1DPathEffect.h
parentf5d4746ad73ef5eabc927d3d988bb9ee97c77921 (diff)
fix misc asserts and checks found by fuzzer
Diffstat (limited to 'include/effects/Sk1DPathEffect.h')
-rw-r--r--include/effects/Sk1DPathEffect.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/effects/Sk1DPathEffect.h b/include/effects/Sk1DPathEffect.h
index 3419dc23b7..c8328881a0 100644
--- a/include/effects/Sk1DPathEffect.h
+++ b/include/effects/Sk1DPathEffect.h
@@ -45,8 +45,6 @@ public:
kTranslate_Style, // translate the shape to each position
kRotate_Style, // rotate the shape about its center
kMorph_Style, // transform each point, and turn lines into curves
-
- kStyleCount
};
/** Dash by replicating the specified path.
@@ -56,9 +54,7 @@ public:
@param style how to transform path at each point (based on the current
position and tangent)
*/
- static SkPathEffect* Create(const SkPath& path, SkScalar advance, SkScalar phase, Style style) {
- return new SkPath1DPathEffect(path, advance, phase, style);
- }
+ static SkPathEffect* Create(const SkPath& path, SkScalar advance, SkScalar phase, Style);
virtual bool filterPath(SkPath*, const SkPath&,
SkStrokeRec*, const SkRect*) const override;