| Index: include/effects/SkCornerPathEffect.h
|
| diff --git a/include/effects/SkCornerPathEffect.h b/include/effects/SkCornerPathEffect.h
|
| index dcb7c9f736c34c571cdf30e0e6b56b536ee22125..c77505be3911512f9478e52e54ea83a70f9f0762 100644
|
| --- a/include/effects/SkCornerPathEffect.h
|
| +++ b/include/effects/SkCornerPathEffect.h
|
| @@ -20,7 +20,9 @@ public:
|
| /** radius must be > 0 to have an effect. It specifies the distance from each corner
|
| that should be "rounded".
|
| */
|
| - SkCornerPathEffect(SkScalar radius);
|
| + static SkCornerPathEffect* Create(SkScalar radius) {
|
| + return SkNEW_ARGS(SkCornerPathEffect, (radius));
|
| + }
|
| virtual ~SkCornerPathEffect();
|
|
|
| virtual bool filterPath(SkPath* dst, const SkPath& src,
|
| @@ -32,6 +34,11 @@ protected:
|
| SkCornerPathEffect(SkReadBuffer&);
|
| virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
|
|
|
| +#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS
|
| +public:
|
| +#endif
|
| + SkCornerPathEffect(SkScalar radius);
|
| +
|
| private:
|
| SkScalar fRadius;
|
|
|
|
|