sdm: Add support to recompute rectangles considering flips

CRs-Fixed: 2006534
Change-Id: I698e9cd6eddf958fa564e4d32fa5b98057eb9f1d
3 files changed