libgralloc: Use ION_IOC_CUSTOM instead of MSM-specific ioctls

Use ION_IOC_CUSTOM instead of ION_IOC_CLEAN_INV_CACHES.
ION_IOC_CLEAN_INV_CACHES is now specified as a command argument of the
ION_IOC_CUSTOM ioctl.

(cherry picked from commit 11415c20405323a353b6a0a8e716050d1903884e)

Change-Id: I44c8b3844cb72360aef9ccb21a2119eeceb4dcaa
libgralloc: Change ion_allocation_data fields.

Change ioc_allocation_data structure fields as per changes in kernel.
The 'heap_mask' feild will hold what the older flags field held.
The 'flags' field will hold the caching information.

(cherry picked from commit edf37d8ed11e4b023c767e6e9c3899f5331bc561)

Change-Id: I1f4ff28add611f09f019bb8014b1ec70f65b53ce
gralloc: set ION_SECURE to flags instead of heap_mask during ion alloc.

  This is required for Secure Playback usecase.

(cherry picked from commit 76f2051d0c7019bbee0b65a85e2a4f82fc2cfcec)

Change-Id: Ibacbcb885ffa95551968439d1dc8b89e14373463
Merge "libgralloc: Use ION_IOC_CUSTOM instead of MSM-specific ioctls"
Merge "libgralloc: Change ion_allocation_data fields."
Merge "gralloc: set ION_SECURE to flags instead of heap_mask during ion alloc."
Update copyright to The Linux Foundation

Change-Id: I3fb8cf9b70ecfc4b81ee74342f1f7a6edd3de030
libhwcomposer: Add support for MDP composition with video buffers

This change allows MDP composition in the presence
of video buffers even with rotation. Its mandatory
that all the associated RGB (UI) buffers need be
pre-rotated to get MDP composited.

Change-Id: I421eff5d6f56ddc785c0add3ee48c09b7397688e
(cherry picked from commit ed4afe0182d315ca0a077c1765f1636f13fbb570)
Merge "Update copyright to The Linux Foundation" into jb_2.2_rb2.3
Revert "gralloc: set ION_SECURE to flags instead of heap_mask during ion alloc."

This reverts commit c00851f12bd08264cabb7e6e2b82c56e0a756dd8

Change-Id: I9a07555dacba9217efccde270718c24d673bfc7d
Revert "libgralloc: Change ion_allocation_data fields."

This reverts commit a0ddbf93d72b63c582b9b1c708b55a0c3053a958.
Merge "Revert "gralloc: set ION_SECURE to flags instead of heap_mask during ion alloc.""
Merge "Revert "libgralloc: Change ion_allocation_data fields.""
Revert "libgralloc: Use ION_IOC_CUSTOM instead of MSM-specific ioctls"

This reverts commit cb5cec5a4fd9a4a574f3afd29dc0c8c310c71611

Change-Id: I731c7229945fe626c949e3e36e63f4a0d983e5b2
liboverlay: Copy floating pipe during true UI mirror state transitions

This changes makes sure floating pipe is copied appropriately while
doing from / to true UI mirror state transitions.

(cherry picked from commit 0defefc66133f586de64780d1f22f64e666178a6)

Change-Id: I7b85413cafa061788d3c69c8a5f9040deec6c74e
Merge "Revert "libgralloc: Use ION_IOC_CUSTOM instead of MSM-specific ioctls""
Merge "liboverlay: Copy floating pipe during true UI mirror state transitions"
display/libhwcomposer: Fix memory leak in MDP Comp.

This changes fixes a memory leak by freeing up pipe alloc
structure everytime before parsing the current frame.

Change-Id: I23edefca71ec0209291be24ee9d629b4a80f0a25
(cherry picked from commit 69f2cf3deb39ff3963f452424597c915061d2180)

Conflicts:

	libhwcomposer/hwc_mdpcomp.cpp
Merge commit 'AU_LINUX_ANDROID_JB_2.2_RB2_3.04.01.02.37.068' into HEAD
Merge "libhwcomposer: Add support for MDP composition with video buffers"