gralloc: Cleanup usage of old API

All builds have now moved to the new ION API.

Change-Id: Ic5ed7aa40231be64c715d6bb0d00a022db3fb863
copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
Merge "gralloc: Cleanup usage of old API"
Merge "copybit: Fix type conversion error for GCC 4.7"
libcopybit: Fix potential memory and surface leaks in c2d

- Check MAX_SURFACES while mapping GPU addr
 --- While mapping gpu address, first check if the request
     is less than the MAX_SURFACES allowed.
 --- Without this check, when the request exceeded MAX_SURFACES,
     there was memory leak as that gpu addr was not unmapped
- Map the destination surface only once
 --- The destination surface for the c2d blit will be the
     FRAME_BUFFER_TARGET per transaction
 --- Map this only once from the copybit_clear which is the first
     call by hwc for a transaction
- Increase MAX_RGB_SURFACES to 12
 --- To handle use cases where there are more than 8 RGB layers

Change-Id: Iffacde30ee88b9c21d0895cb1922aa981bb079e9
CRs-fixed: 475327
libhwcomposer: align rotator source buffers for tile format.

for tile format make the rotator source buffers aligned to 64 X 32.
This avoids rotator hang during source fetch.

Change-Id: I9e42788cc6f538b155c073028ce41bf48e1d9349
CRs-fixed: 473297
hwc: Close Fds in case of errors in openFramebuffer

Close opened Fds in case of errors in openFramebuffer
function.

Change-Id: Ifd80adf1eff0d2efd698cd4abd3980d5c1f333ab
CRs-fixed: 473488
Merge "libcopybit: Fix potential memory and surface leaks in c2d"
hwc: Fallback to GPU if source image width or height is less than 2

There is h/w limitation when MDP_OP_SCALE_RGB_ENHANCED bit and
MDP4_OP_SCALEX_EN or MDP_OP_SCALEY_EN bit is set.
The minimum block size is 2x2. MDP will hang if the source RGB image
height or width is equal to 1. Hence fallback to GPU in such cases.

Change-Id: I7333b097fd26bfb888865de9c39d1664bc87acca
CRs-fixed: 477581
Merge "hwc: Close Fds in case of errors in openFramebuffer"
libexternal: Add support for SPD Information

- SPD: Source product description.
- Retrieve the product vendor and name from the system
  property and pass it to the hdmi driver.
- This will display some specific names for source such
  as instead of "Input 1" it might display "QCOM 8974" for
  example

Change-Id: I5440841b9e47110386c793045f3b30774522dcb6
libgralloc: Change CAMERA_HEAP to ADSP_HEAP

This changes GRALLOC_USAGE_PRIVATE_CAMERA_HEAP to
GRALLOC_USAGE_PRIVATE_ADSP_HEAP as the CAMERA_HEAP
is not used anymore

Change-Id: I5a95f68c4c7f4445ade2398dd239faad9ed16b22
hwc: Add property to differentiate the input image format

Set different vaules to property hw.cabl.yuv based on the input
image format, so that mm-pp-daemon can adjust CABL power
saving levels accordingly.

CRs-fixed: 464799
Change-Id: I212035d387a975e61a08749ba118a9da30e18d81
Merge "libgralloc: Change CAMERA_HEAP to ADSP_HEAP"
Merge "hwc: Fallback to GPU if source image width or height is less than 2"
Merge "hwc: Add property to differentiate the input image format"
Merge "libhwcomposer: align rotator source buffers for tile format."
libhwcomposer: print a log if there is any delay in vsync read.

If there is a delay in vsync read print a warning message if
vsync status is enabled.

Change-Id: Iac875323fca441ff5261f8e9ddef2936e433e84e
CRs-fixed: 462993
hwc: Do not include Framebuffer area in calculating total area

In dynamic composition, While calculating total render area of
application layers to decide on which composition to choose,
FrameBuffer layer area shall not be added to the total render area.

Change-Id: I712b601031c6faac2d077a8d601cbf9fa82f3d5b
CRs-fixed: 482264
Merge "libhwcomposer: print a log if there is any delay in vsync read."