Index: include/effects/SkCornerPathEffect.h |
diff --git a/include/effects/SkCornerPathEffect.h b/include/effects/SkCornerPathEffect.h |
index dcb7c9f736c34c571cdf30e0e6b56b536ee22125..20018d1ef9472fc16e46a8fc1b6d9607604b1953 100644 |
--- a/include/effects/SkCornerPathEffect.h |
+++ b/include/effects/SkCornerPathEffect.h |
@@ -17,10 +17,9 @@ |
*/ |
class SK_API SkCornerPathEffect : public SkPathEffect { |
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 +31,14 @@ protected: |
SkCornerPathEffect(SkReadBuffer&); |
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |
+#ifdef SK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS |
+public: |
+#endif |
+ /** radius must be > 0 to have an effect. It specifies the distance from each corner |
scroggo
2014/02/18 16:53:11
Can you put this comment by the new factory?
Dominik Grewe
2014/02/18 17:05:30
Good point! Done.
|
+ that should be "rounded". |
+ */ |
+ SkCornerPathEffect(SkScalar radius); |
+ |
private: |
SkScalar fRadius; |