Home | History | Annotate | Download | only in core

Lines Matching refs:rect2

12 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2);
14 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2);
458 static inline uint32_t get_overlap(const SkIRect& rect1, const SkIRect& rect2) {
460 return SkMax32(0, SkMin32(rect1.fRight, rect2.fRight) - SkMax32(rect1.fLeft, rect2.fLeft)) *
461 SkMax32(0, SkMin32(rect1.fBottom, rect2.fBottom) - SkMax32(rect1.fTop, rect2.fTop));
469 static inline uint32_t get_area_increase(const SkIRect& rect1, SkIRect rect2) {
470 join_no_empty_check(rect1, &rect2);
471 return get_area(rect2) - get_area(rect1);