Lines Matching defs:r1
829 inline bool intersect(const hwc_rect &r1, const hwc_rect &r2)
831 return !(r1.left > r2.right ||
832 r1.right < r2.left ||
833 r1.top > r2.bottom ||
834 r1.bottom < r2.top);
837 inline hwc_rect intersection(const hwc_rect &r1, const hwc_rect &r2)
840 i.top = max(r1.top, r2.top);
841 i.bottom = min(r1.bottom, r2.bottom);
842 i.left = max(r1.left, r2.left);
843 i.right = min(r1.right, r2.right);