Index: include/core/SkPathEffect.h |
diff --git a/include/core/SkPathEffect.h b/include/core/SkPathEffect.h |
index 3b4541de5681944c870d7c5594ee7c3f2fb5060c..d3381b4a118bdbe9aab00608197a0fcb036b05ae 100644 |
--- a/include/core/SkPathEffect.h |
+++ b/include/core/SkPathEffect.h |
@@ -28,6 +28,8 @@ class SkPath; |
Dashing is implemented as a subclass of SkPathEffect. |
*/ |
class SK_API SkPathEffect : public SkFlattenable { |
+ typedef SkFlattenable INHERITED; |
+ |
public: |
SK_DECLARE_INST_COUNT(SkPathEffect) |
@@ -106,6 +108,8 @@ public: |
const SkStrokeRec&, const SkMatrix&, |
const SkRect* cullR) const; |
+ SK_DEFINE_FLATTENABLE_TYPE(SkPathEffect) |
+ |
protected: |
SkPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} |
@@ -113,8 +117,6 @@ private: |
// illegal |
SkPathEffect(const SkPathEffect&); |
SkPathEffect& operator=(const SkPathEffect&); |
- |
- typedef SkFlattenable INHERITED; |
}; |
/** \class SkPairPathEffect |
@@ -124,6 +126,8 @@ private: |
for managing the lifetimes of its two arguments. |
*/ |
class SkPairPathEffect : public SkPathEffect { |
+ typedef SkPathEffect INHERITED; |
+ |
public: |
SkPairPathEffect(SkPathEffect* pe0, SkPathEffect* pe1); |
virtual ~SkPairPathEffect(); |
@@ -134,9 +138,6 @@ protected: |
// these are visible to our subclasses |
SkPathEffect* fPE0, *fPE1; |
- |
-private: |
- typedef SkPathEffect INHERITED; |
}; |
/** \class SkComposePathEffect |
@@ -145,6 +146,8 @@ private: |
a compound pathEffect. |
*/ |
class SkComposePathEffect : public SkPairPathEffect { |
+ typedef SkPairPathEffect INHERITED; |
+ |
public: |
/** Construct a pathEffect whose effect is to apply first the inner pathEffect |
and the the outer pathEffect (e.g. outer(inner(path))) |
@@ -166,8 +169,6 @@ private: |
// illegal |
SkComposePathEffect(const SkComposePathEffect&); |
SkComposePathEffect& operator=(const SkComposePathEffect&); |
- |
- typedef SkPairPathEffect INHERITED; |
}; |
/** \class SkSumPathEffect |
@@ -176,6 +177,8 @@ private: |
Its filterPath() returns true if either of the effects succeeded. |
*/ |
class SkSumPathEffect : public SkPairPathEffect { |
+ typedef SkPairPathEffect INHERITED; |
+ |
public: |
/** Construct a pathEffect whose effect is to apply two effects, in sequence. |
(e.g. first(path) + second(path)) |
@@ -197,8 +200,6 @@ private: |
// illegal |
SkSumPathEffect(const SkSumPathEffect&); |
SkSumPathEffect& operator=(const SkSumPathEffect&); |
- |
- typedef SkPairPathEffect INHERITED; |
}; |
#endif |