Index: src/core/SkClipStack.cpp |
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp |
index 4227eeac68fc8a7b2101422c084966db8414a0d9..4e53d8b850d5c9e11e9f53e9a153296ed187a384 100644 |
--- a/src/core/SkClipStack.cpp |
+++ b/src/core/SkClipStack.cpp |
@@ -21,6 +21,7 @@ int32_t SkClipStack::gGenID = kFirstUnreservedGenID; |
SkClipStack::Element::Element(const Element& that) { |
switch (that.getType()) { |
case kEmpty_Type: |
+ fRRect.setEmpty(); |
bsalomon
2016/03/17 13:07:12
Do we really care about doing this? The reason the
|
fPath.reset(); |
break; |
case kRect_Type: // Rect uses rrect |
@@ -171,6 +172,7 @@ void SkClipStack::Element::checkEmpty() const { |
SkASSERT(kNormal_BoundsType == fFiniteBoundType); |
SkASSERT(!fIsIntersectionOfRects); |
SkASSERT(kEmptyGenID == fGenID); |
+ SkASSERT(fRRect.isEmpty()); |
SkASSERT(!fPath.isValid()); |
} |