gralloc: Remove memset.

The ion driver now guarantees that it will give us a zero'd out
buffer at allocation.

Change-Id: I7ec2b7d6dd94cdc394de12b69249ac9e1baa6708
liboverlay: Allocate cached rotator buffers

- gralloc does not invalidate and clean the cached buffers.
- Using cached buffers for rotator does not add any benefit as
  rotator doesn't touch the L2 cache. Since no one accesses the
  memory but the rotator and mdp, so make rotator buffers uncached

Change-Id: I3dc3c91afb2fc07b7473662323339aac1cea3d73
overlay: Update rotator buffer size calculation for BWC.

For BWC, update the rotator buffer size calculation in display HAL
as MDSS driver needs to allocate for both chroma (U & V) planes.

Change-Id: I140be2b0a38d6cd66e2ee1b3c9a8bb06efd96bfe
hwc: Increase precision in triming

Increase precision from float to double in triming calcs.
This improves the output. We need this since ultimately
we assign to int which would truncate excesses. With float
due to lower precision, we end up slightly lower than an
integral value.

Change-Id: I5d781b609be1761b746edf6503340f34a985b9e2
hwc: wfd: Fix locking on pause resume events

Fix locking on wfd pause, resume events. Some variables are updated
without proper locks being held.

Fix external related lock in hwc to include complete prepare and draw
Mdp comp for primary, otherwise, ends up reading some flags without
locks.

Change-Id: I0f2f0953a7ab322128d044ca3458e359da4e575e
display: define ANDROID_JELLYBEAN_MR1 outside TARGET_USES_QCOM_BSP

define ANDROID_JELLYBEAN_MR1 outside TARGET_USES_QCOM_BSP check,
because ANDROID_JELLYBEAN_MR1 is not specific to qualcomm.

Change-Id: Ib99dfa3a77d2b4df8bd4910fff3d948924629d9b
display: Export headers

Display headers used by other components should be at a common
location to avoid issues with future changes in paths.

Change-Id: Iaec21206b82dd7dae03e598b9ec46b3e6f1bbf71
hwc: Add support for HDMI vsync

SurfaceFlinger can enable HDMI vsync through event control.
Poll for HDMI vsync events and report them to SurfaceFlinger.

Change-Id: I301f1dffbab56b3b5a3dda5a59c37721688d7849
Merge "overlay: Update rotator buffer size calculation for BWC."
Merge "liboverlay: Allocate cached rotator buffers"
Merge "gralloc: Remove memset."
Merge "hwc: wfd: Fix locking on pause resume events"
Merge "hwc: Increase precision in triming"
Merge "display: define ANDROID_JELLYBEAN_MR1 outside TARGET_USES_QCOM_BSP"
Merge "hwc: Add support for HDMI vsync"
Merge "display: Export headers"