hwc: Align ROI's width and height in both directions

Current implementation, to align width or height we are increasing
right and bottom respectively. For high width and height alignment
requirement might go out of bounds. This change will take bounds
in to account while adjusting ROI.

Change-Id: Ic28a524435b1ebf0ab6894008f2af1d936d13a13
1 file changed