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

Unified Diff: src/core/SkClipStack.cpp

Issue 1793373002: Add asRRect method to SkClipStack::Element (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comments Created 4 years, 9 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
« no previous file with comments | « include/core/SkClipStack.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « include/core/SkClipStack.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698