Lines Matching refs:rect1

1089 bool isSameRect(const hwc_rect& rect1, const hwc_rect& rect2)  in isSameRect()  argument
1091 return ((rect1.left == rect2.left) && (rect1.top == rect2.top) && in isSameRect()
1092 (rect1.right == rect2.right) && (rect1.bottom == rect2.bottom)); in isSameRect()
1123 hwc_rect_t getIntersection(const hwc_rect_t& rect1, const hwc_rect_t& rect2) in getIntersection() argument
1127 if(!isValidRect(rect1) || !isValidRect(rect2)){ in getIntersection()
1132 res.left = max(rect1.left, rect2.left); in getIntersection()
1133 res.top = max(rect1.top, rect2.top); in getIntersection()
1134 res.right = min(rect1.right, rect2.right); in getIntersection()
1135 res.bottom = min(rect1.bottom, rect2.bottom); in getIntersection()
1144 hwc_rect_t getUnion(const hwc_rect &rect1, const hwc_rect &rect2) in getUnion() argument
1148 if(!isValidRect(rect1)){ in getUnion()
1153 return rect1; in getUnion()
1156 res.left = min(rect1.left, rect2.left); in getUnion()
1157 res.top = min(rect1.top, rect2.top); in getUnion()
1158 res.right = max(rect1.right, rect2.right); in getUnion()
1159 res.bottom = max(rect1.bottom, rect2.bottom); in getUnion()
1166 hwc_rect_t deductRect(const hwc_rect_t& rect1, const hwc_rect_t& rect2) { in deductRect() argument
1168 hwc_rect_t res = rect1; in deductRect()
1170 if((rect1.left == rect2.left) && (rect1.right == rect2.right)) { in deductRect()
1171 if((rect1.top == rect2.top) && (rect2.bottom <= rect1.bottom)) in deductRect()
1173 else if((rect1.bottom == rect2.bottom)&& (rect2.top >= rect1.top)) in deductRect()
1176 else if((rect1.top == rect2.top) && (rect1.bottom == rect2.bottom)) { in deductRect()
1177 if((rect1.left == rect2.left) && (rect2.right <= rect1.right)) in deductRect()
1179 else if((rect1.right == rect2.right)&& (rect2.left >= rect1.left)) in deductRect()
2155 bool isPeripheral(const hwc_rect_t& rect1, const hwc_rect_t& rect2) { in isPeripheral() argument
2158 if (rect1.left == rect2.left) in isPeripheral()
2160 if (rect1.top == rect2.top) in isPeripheral()
2162 if (rect1.right == rect2.right) in isPeripheral()
2164 if (rect1.bottom == rect2.bottom) in isPeripheral()