display: Enable triple framebuffers

Change-Id: I323c10b939277477f724c2d0a20f9c6da4899481
liboverlay: Refactor, bug-fixes, upgrade.

Fix memory leak during copying pipe objects.
Remove unused / unnecessary code.
setMemoryId API is merged with queueBuffer.
setParameter API is setTransform now.
Rotator upgraded to:
--Allow different rotator hardware types.
--Remove dependency on MDP code.
--Allocate memory only during first playback, close when the associated pipe is
closed.
Have single commit implementation.
Include new format types.

Change-Id: I28d87179c7ec9c0b97721a9ff17f1526da98b714
hwc: Add VideoOverlay class

Add videoOverlay class for display videos with overlay.

Change-Id: I161d1732fdf8336d0b6dcf5326e6adb7514a2d02

Conflicts:

	libhwcomposer/Android.mk
overlay: Allocate from MM heap as a fallback

 * Not all devices support IOMMU yet, so use the MM heap as a fallback.

Change-Id: I9d9f3dffb92f5b4bf45422df0f66a40611943202
framebuffer: Fix locking

The gralloc locking did not lock
the framebuffer. Use genlock to
lock the framebuffers.

Change-Id: Ie8be6f7950f6df06a2293c3df863e19cd5386479
overlay: upgrade

p#1: Remove WAIT and CHANNEL enums and usage. Replace BypassPipe with
     GenericPipe. Client expected to set alignments and parameters.
     Add transform combination enums.
p#2: Allow APIs to be called in any order. Do transform calcs in commit.
     Move ext type setter and getter functions.
p#3: Add calculations for 180 transform.
p#4: Add secure session support in rotator
p#5: Implement all rotations in terms of H flip, V flip and 90 rotation.

Change-Id: I34a9a2a0f1255b3467a0abbaa254d0b584e901ce

Conflicts:

	liboverlay/overlayMem.h
hwcomposer: Add support for UI mirroring

- Uevent observer as part of Hwcomposer
- HPD, enabling/disabling external display from HWC

Change-Id: I52b4f30c78e98c5b52c86722046389f458c2dbee

Conflicts:

	libhwcomposer/Android.mk
gralloc: Update Yamato format to match OMX

The value of OMX color format for Yamato  is 0x7FA30C01.

Change-Id: Idb25ce6cd619a44e5980074e2a37185a4750000d
overlay: Secure playback add missing flag.

Add the missing GRALLOC_USAGE_PRIVATE_CP_BUFFER while allocating secure memory
Change the O_SYNC to O_DSYNC flag.

Change-Id: Ida014018be111a7904ff07c206a673b2abf52d05
display : Add support for copybit composition

This change add support for copybit composition in display HAL
for MDP3 targets.

Change-Id: I80144619f39a895d2f214adb6ca92d0a7f5ed9a5

Conflicts:

	common.mk
	libhwcomposer/Android.mk
overlay: Allow disabling secure playback

If the device's kernel isn't fully prepared for secure content
playback, having the secure field in the msm_rotator_img_info
struct will cause issues while playing out video.

The correct set of patches to the kernel (MDP, maybe vidc) needs
to be figured out for this to be enabled; to disable it,
add QCOM_NO_SECURE_PLAYBACK to the device's CFLAGS. (and remove
"secure" from msm_rotator_img_info)

Change-Id: I7949e918163e0acb2d6eb3d8881b04fb07b2be2c
libcopybit: Build for 7x27A and 7x27 platforms

Change-Id: Ifc610b35f724294a7377824ce4e327fc957b587b
display: disable hwcomposer logspam

Change-Id: I71e912218932c66852424c47d98c384ed21344c2
Merge "overlay: Allow disabling secure playback" into jellybean
Merge remote branch 'cyanogen/jellybean' into jellybean

* cyanogen/jellybean:
  display: disable hwcomposer logspam
  libcopybit: Build for 7x27A and 7x27 platforms
  overlay: Allow disabling secure playback
  display : Add support for copybit composition
  overlay: Secure playback add missing flag.
  gralloc: Update Yamato format to match OMX
  hwcomposer: Add support for UI mirroring
  overlay: upgrade
  framebuffer: Fix locking
  overlay: Allocate from MM heap as a fallback
  hwc: Add VideoOverlay class
  liboverlay: Refactor, bug-fixes, upgrade.
  display: Enable triple framebuffers