Chromium Code Reviews| Index: include/effects/SkDashPathEffect.h |
| diff --git a/include/effects/SkDashPathEffect.h b/include/effects/SkDashPathEffect.h |
| index 818e0739246fa31928dddc3faa4775104afb000f..5dd91ca3422a59de63dcc8bd2a6ec396927cfe01 100644 |
| --- a/include/effects/SkDashPathEffect.h |
| +++ b/include/effects/SkDashPathEffect.h |
| @@ -38,6 +38,11 @@ public: |
| */ |
| SkDashPathEffect(const SkScalar intervals[], int count, SkScalar phase, |
|
reed1
2014/02/18 14:06:22
Protected?
|
| bool scaleToFit = false); |
| + |
| + static SkDashPathEffect* Create(const SkScalar intervals[], int count, |
| + SkScalar phase, bool scaleToFit = false) { |
| + return SkNEW_ARGS(SkDashPathEffect, (intervals, count, phase, scaleToFit)); |
| + } |
| virtual ~SkDashPathEffect(); |
| virtual bool filterPath(SkPath* dst, const SkPath& src, |