Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: include/core/SkPathEffect.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New serialization method Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698