hwc:Change the flip value in case of MDP3.0 based target.

When flip and rotation(90) are present alter the flip,
as GPU is doing the flip and rotation in opposite order
to that of MDP3.0
For 270 degrees, we get 90 + (H+V) which is same as doing
flip first and then rotation (H+V) + 90

Change-Id: Ia4e7117e94e4ef76c6c771c172173c41edbd4d2c
Merge "hwc:Change the flip value in case of MDP3.0 based target."
HWC/copybit : Add support for isFG in copybit

Some applications are sending the RGBA layer with constact alpha
0xFF and isOpaque=1. For these types of layer we are not getting
any wormHole regions.Hence we are seeing the previous content (framebuffer)
due to wrong selection of blending logic at kernel side.

For fixing these type of issues for MDP3 we are making Z order zero
layer as FG same as MDP4 to choose proper blending logic.

(cherry picked from commit 68a0f20dd31a753abdefd0be64287d93f03036cc)

Change-Id: Iad5f69bc411d22229aa509dc5bfb351744615049
CRs-fixed: 405802
CRs-fixed: 406503
CRs-fixed: 386356
Merge "HWC/copybit : Add support for isFG in copybit"
Revert "copybit: Making even destination frame crop"

This reverts commit 18616a7a0beb2d0fa4d700ffc4c0ec5b281be960.
Revert "copybit: Making even dst width and height"

This reverts commit e0db78ec02076d86593ab8679a6d392916b004f6.
Merge "Revert "copybit: Making even destination frame crop""
Merge "Revert "copybit: Making even dst width and height""