Lines Matching refs:rgn
209 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument
212 return this->op(tmp, rgn, op); in op()
215 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument
218 return this->op(rgn, tmp, op); in op()
438 bool SkRegion::contains(const SkRegion& rgn) const { in contains()
440 SkDEBUGCODE(SkRegionPriv::Validate(rgn)); in contains()
442 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains()
448 if (rgn.isRect()) { in contains()
449 return this->contains(rgn.getBounds()); in contains()
456 return !Oper(rgn, *this, kDifference_Op, nullptr); in contains()
523 bool SkRegion::intersects(const SkRegion& rgn) const { in intersects()
524 if (this->isEmpty() || rgn.isEmpty()) { in intersects()
528 if (!SkIRect::Intersects(fBounds, rgn.fBounds)) { in intersects()
533 bool theyAreARect = rgn.isRect(); in intersects()
539 return rgn.intersects(this->getBounds()); in intersects()
542 return this->intersects(rgn.getBounds()); in intersects()
546 return Oper(*this, rgn, kIntersect_Op, nullptr); in intersects()
1028 static bool setRegionCheck(SkRegion* result, const SkRegion& rgn) { in setRegionCheck() argument
1029 return result ? result->setRegion(rgn) : !rgn.isEmpty(); in setRegionCheck()
1355 void SkRegionPriv::Validate(const SkRegion& rgn) { SkASSERT(rgn.isValid()); } in Validate() argument
1375 SkRegion::Iterator::Iterator(const SkRegion& rgn) { in Iterator() argument
1376 this->reset(rgn); in Iterator()
1387 void SkRegion::Iterator::reset(const SkRegion& rgn) { in reset() argument
1388 fRgn = &rgn; in reset()
1389 if (rgn.isEmpty()) { in reset()
1393 if (rgn.isRect()) { in reset()
1394 fRect = rgn.fBounds; in reset()
1397 fRuns = rgn.fRunHead->readonly_runs(); in reset()
1445 SkRegion::Cliperator::Cliperator(const SkRegion& rgn, const SkIRect& clip) in Cliperator() argument
1446 : fIter(rgn), fClip(clip), fDone(true) { in Cliperator()
1484 SkRegion::Spanerator::Spanerator(const SkRegion& rgn, int y, int left, in Spanerator() argument
1486 SkDEBUGCODE(SkRegionPriv::Validate(rgn)); in Spanerator()
1488 const SkIRect& r = rgn.getBounds(); in Spanerator()
1491 if (!rgn.isEmpty() && y >= r.fTop && y < r.fBottom && in Spanerator()
1493 if (rgn.isRect()) { in Spanerator()
1505 const SkRegion::RunType* runs = rgn.fRunHead->findScanline(y); in Spanerator()
1573 void SkRegionPriv::VisitSpans(const SkRegion& rgn, in VisitSpans() argument
1575 if (rgn.isEmpty()) { in VisitSpans()
1578 if (rgn.isRect()) { in VisitSpans()
1579 visitor(rgn.getBounds()); in VisitSpans()
1581 const int32_t* p = rgn.fRunHead->readonly_runs(); in VisitSpans()