libhardware: Add allocSize hook function.

Add allocSize hook function to support the custom buffer sizes

Change-Id: I0d55195cbc02af1001d6164ce8fd55380750c029
libhardware: Add ifdef around allocSize

 * Non-QC devices with prebuilt grallocs hate this.

Change-Id: I57ce7547e99ec0cf40c4f05f3742348dec4e2d9d
hwcomposer: Add HWC_BLIT compositiontype value

- HWC_BLIT this layer will be handled in the HWC, using a blit engine
- setting this will inform Surfaceflinger to flip FB_TARGET

Change-Id: I25d19ec41b57863d451c3e390109c912faf1381c
libhardware: Disable rotation animation on External

- Added two new flags to used to inform HWC about
  rotation and roation animation to HWC
- This is used to disable rotation animation on external

Change-Id: I05a9796781dcda088ae6cd64481cd4e581d5cf9e
CRs-fixed: 453747
(cherry picked from commit 055f43ad31b6aafa2f155a5a273c98324631dd2a)
(cherry picked from commit 2b76f1414dc3ac42a2eb5d45a363e11b27df07e4)
(cherry picked from commit 21082cd480b0f24f94d59e128b77323eb690b257)