| Index: include/core/SkClipStack.h
|
| diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
|
| index 4243cee7b06fd84d2d89dade74992c70f9db8f3e..95e41e6220872aebbf64ccd106ee1a7ab96e9f9e 100644
|
| --- a/include/core/SkClipStack.h
|
| +++ b/include/core/SkClipStack.h
|
| @@ -48,7 +48,10 @@ public:
|
| kRRect_Type,
|
| //!< This element combines a path with the current clip using a set operation
|
| kPath_Type,
|
| +
|
| + kLastType = kPath_Type
|
| };
|
| + static const int kTypeCnt = kLastType + 1;
|
|
|
| Element() {
|
| this->initCommon(0, SkRegion::kReplace_Op, false);
|
| @@ -165,6 +168,14 @@ public:
|
| */
|
| void replay(SkCanvasClipVisitor*) const;
|
|
|
| +#ifdef SK_DEVELOPER
|
| + /**
|
| + * Dumps the element to SkDebugf. This is intended for Skia development debugging
|
| + * Don't rely on the existence of this function or the formatting of its output.
|
| + */
|
| + void dump() const;
|
| +#endif
|
| +
|
| private:
|
| friend class SkClipStack;
|
|
|
| @@ -341,6 +352,14 @@ public:
|
|
|
| int32_t getTopmostGenID() const;
|
|
|
| +#ifdef SK_DEVELOPER
|
| + /**
|
| + * Dumps the contents of the clip stack to SkDebugf. This is intended for Skia development
|
| + * debugging. Don't rely on the existence of this function or the formatting of its output.
|
| + */
|
| + void dump() const;
|
| +#endif
|
| +
|
| public:
|
| class Iter {
|
| public:
|
|
|