| Index: src/core/SkClipStack.cpp
|
| diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp
|
| index 17eb6f931d31f04d344c27ecc0228fe7a100ce0a..e5016977c9ed5cfbd43744b35a4db5682d1458d6 100644
|
| --- a/src/core/SkClipStack.cpp
|
| +++ b/src/core/SkClipStack.cpp
|
| @@ -103,6 +103,18 @@ void SkClipStack::Element::asPath(SkPath* path) const {
|
| }
|
| }
|
|
|
| +void SkClipStack::Element::setEmpty() {
|
| + fType = kEmpty_Type;
|
| + fFiniteBound.setEmpty();
|
| + fFiniteBoundType = kNormal_BoundsType;
|
| + fIsIntersectionOfRects = false;
|
| + fRect.setEmpty();
|
| + fRRect.setEmpty();
|
| + fPath.reset();
|
| + fGenID = kEmptyGenID;
|
| + SkDEBUGCODE(this->checkEmpty();)
|
| +}
|
| +
|
| void SkClipStack::Element::checkEmpty() const {
|
| SkASSERT(fFiniteBound.isEmpty());
|
| SkASSERT(kNormal_BoundsType == fFiniteBoundType);
|
|
|