hwcutils: Include orientation while screen-fitting

MDP doesn't like out-of-screen-bounds parameters. So based on the
position the layer, we adjust the portion of layer the MDP should pick.
However, this did not factor in orientation, so far. This patch does
that and allows panning to work in other orientations,
without having to use GPU.

Change-Id: I78e473f8cb845bd490257d1f4e41d3d078d185ba
Merge "hwcutils: Include orientation while screen-fitting"