Merge "HWC/Copybit :: Add swap rect feature in HAL for MDP3"

This commit is contained in:
Linux Build Service Account
2014-04-22 06:37:15 -07:00
committed by Gerrit - the friendly Code Review server
4 changed files with 177 additions and 11 deletions

View File

@@ -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)
{