aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRegion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkRegion.cpp')
-rw-r--r--src/core/SkRegion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkRegion.cpp b/src/core/SkRegion.cpp
index 8ba3167297..204e35479d 100644
--- a/src/core/SkRegion.cpp
+++ b/src/core/SkRegion.cpp
@@ -145,6 +145,10 @@ bool SkRegion::setRect(const SkIRect& r) {
return this->setEmpty();
}
this->freeRuns();
+ SkASSERT(r.left() != SkRegion::kRunTypeSentinel);
+ SkASSERT(r.top() != SkRegion::kRunTypeSentinel);
+ SkASSERT(r.right() != SkRegion::kRunTypeSentinel);
+ SkASSERT(r.bottom() != SkRegion::kRunTypeSentinel);
fBounds = r;
fRunHead = SkRegion_gRectRunHeadPtr;
return true;