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)
libhardware: Add dirty region field to hwc layer

This change adds dirty region field to hwc_layer_1_t structure to
pass the layer's dirty region information since the previous frame.

Change-Id: I5b107b702636c6b1f662703a29dfda4793c02809
Add gralloc_perform enums definitions

Define enums for gralloc_perform function use cases.

Change-Id: Ibe5652fee7251c9de76e4ac7bdaa13ae865dd03d
libhardware: Add allocSize hook function.

Add allocSize hook function to support the custom buffer sizes

Change-Id: I0d55195cbc02af1001d6164ce8fd55380750c029
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