Lines Matching refs:rect2
13 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2);
15 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2,
17 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2);
443 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) { in get_overlap() argument
445 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) * in get_overlap()
446 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop)); in get_overlap()
454 static inline uint32_t get_overlap_increase(const SkIRect& rect1, const SkIRect& rect2, in get_overlap_increase() argument
457 return get_overlap(expandBy, rect2) - get_overlap(rect1, rect2); in get_overlap_increase()
460 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) { in get_area_increase() argument
461 join_no_empty_check(rect1, &rect2); in get_area_increase()
462 return get_area(rect2) - get_area(rect1); in get_area_increase()