hwcomposer : Fix copybit render buffer fence usage.

Fixing array size to hold fence fd to count of render
buffers used in copybit, and use it to store
fence of corresponding render buffer at the index.

Change-Id: Ic5e7f264c2a81ded2a0f61ef138e59a093b0023a

Conflicts:
	libhwcomposer/hwc_copybit.cpp
libhwcomposer: Fence FD Count not handled for CACHED layer

- Fence FD count should not be incremented for CACHED layer

Change-Id: Ie6670bd44d2ff3ee180ee8413bf81154ee122c43
Donot compose layers if external is in pause state

* Donot compose external/virtual layer-list when
when external/virtual is in pause state.
* Marking the layers for GPU composition when external/virtual
is in pause state would update FB_TARGET layer which inturn would
affect partial mdpcomp after resume.

Change-Id: Id2806bd7156085c00158a31dff3c3dc4c2b61146
Merge "Donot compose layers if external is in pause state"
Merge "libhwcomposer: Fence FD Count not handled for CACHED layer"
Merge "hwcomposer : Fix copybit render buffer fence usage."
Merge branch 'kk_2.7_rb1.17' of git://codeaurora.org/platform/hardware/qcom/display into cm-11.0
HWC: Fix for use int reference in function call

To use the integer reference, declared integer
variable to get value directly in that variable.

Change-Id: I1fd1a45580be99dd95ccbc3495e28455a4c7de23
hwcomposer : Fix rotator fence for FB pre rotation.

Add framebuffer to rotator map data structure if
rotator is used for pre rotating framebuffer.

Change-Id: I496656c22b289b0bb0bf8c49056384a7fad3ac7d
CRs-fixed: 569696

Conflicts:
	libhwcomposer/hwc_fbupdate.cpp
hwc: Add deduction operation to Rect utils

Seperate out rectangle deduction from the layer cropping. Update
layer sourceCrop and displayFrame after deducting the rect value.
This makes the function generic enough to be used by other
modules

Change-Id: I587ac951357af823a1bf5e06c15ff47ac6a9c2a0
hwc: Crop source rect for the optimized destination

If a layer destination can be optimized, its source rect
needs to be cropped for the optimized destination rect.

Change-Id: If9a9891200d9cea52b58b253299b4007197cd9e5
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_hardware_qcom_display-caf into kk4.4