Merge "HWC/Copybit :: Add swap rect feature in HAL for MDP3"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
597c23c216
@@ -1076,6 +1076,13 @@ bool isValidRect(const hwc_rect& rect)
|
||||
return ((rect.bottom > rect.top) && (rect.right > rect.left)) ;
|
||||
}
|
||||
|
||||
bool operator ==(const hwc_rect_t& lhs, const hwc_rect_t& rhs) {
|
||||
if(lhs.left == rhs.left && lhs.top == rhs.top &&
|
||||
lhs.right == rhs.right && lhs.bottom == rhs.bottom )
|
||||
return true ;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* computes the intersection of two rects */
|
||||
hwc_rect_t getIntersection(const hwc_rect_t& rect1, const hwc_rect_t& rect2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user