hwc: For FB target check RGB pipe availability before VG pipe

If RGB pipe is available then it should be allocated before
allocating VG pipe for FB target.

Change-Id: I0c1f0fd08a7779eb077e9e9c1809bdbcaff2227c
hwc: Disable mdp comp if mDownscaleMode is set for external

If mDownscaleMode is on then scaling will be done. Sending a RGB
layer with alpha to VG pipe can cause composition issues.

Change-Id: I215a5d7360fe741124e809be0b66c328c943d7dc
Merge "hwc: For FB target check RGB pipe availability before VG pipe"
Merge "hwc: Disable mdp comp if mDownscaleMode is set for external"
    hwc : Compilation issue fix.

    Added unsed-paramter to C_FLAGS
    Removed page.h
    Included sync.h

Change-Id: I86db10f108132a7ebc7d4d56be4c18a6ad5017f7
Compilation issue fix

1. Enabled libgenlock compilation.
2. Included sanitized kernel headers.

Change-Id: Ida3ffdd379de4443941f103829a5dd8f9216d31d
hwc: Define binder interface to set view frame of a display

Define binder interface setViewFrame to set view frame information
of a display by surfaceflinger when projection for that display
changes.

Change-Id: If737b51ae0f04303a1a29c91a9703f64354b61fb
Revert "libgralloc: Add support for custom buffer size."

This reverts commit 3d4c0ac4f2600ca28eb3229ed0c7b0e4c0408c3c.

Change-Id: I6a9df303a4af33610e866e6651e1e2253b94d9cf
libgralloc: Remove GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY

Update buffer geometry is supported through metadata, hence remove
GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY support

Change-Id: I349a966c383e16600126634723da15f4137a30d8
gralloc: Add GRALLOC_PRIVATE_USAGE_WFD flag

1. Screenrecord and WFD use virtual display and encoder.
   Since HAL supports only one virtual display, we need a
   definite way to distinguish both use-cases.

   Failure to differentiate will break Screen record + WFD
   concurrent usecase.

   WFD stack will set this usage flag and SF will query the usage
   flags to differentiate WFD and screenrecord usecase.

2. Deprecate GRALLOC_USAGE_PRIVATE_EXTERNAL_CC and
   GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK flags as these are no
   longer used.

Conflicts:
        libhwcomposer/hwc_utils.h

Change-Id: Ifa260c5af2371eea830744ce62a5a83b8cfd0de7
Merge "Revert "libgralloc: Add support for custom buffer size.""
Merge "libgralloc: Remove GRALLOC_MODULE_PERFORM_UPDATE_BUFFER_GEOMETRY"
Merge "hwc: Define binder interface to set view frame of a display"
Merge "gralloc: Add GRALLOC_PRIVATE_USAGE_WFD flag"
libgralloc: Add support for custom buffer size

This reverts commit 3324a37ecbf1e009840004b37a880cd547de69f2.

Change-Id: I635e10e3dbc8cddcd112231385e1ff9ada251eba
libmemtrack: avoid counting surfaceflinger buffers twice

The system wide Graphics memory usage is inaccurate because some ION
buffers which are shared between processes are counted twice, once for
the buffer's consumer (surfaceflinger), and again for the producer.
These ION buffers appear in surfaceflinger's kgsl memory dump with
usage=egl_image, and in the producer's dump with usage=egl_surface.

Improve the accuracy of Graphics memory tracking by ignoring all ION
buffers with usage=egl_image in the surfaceflinger process, under the
assumption that the buffers will be accounted for when examining the
producer's process.

Change-Id: I764c610f226d41e2897d6e0c2247793b0e321ed0
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Merge "libmemtrack: avoid counting surfaceflinger buffers twice"
Merge AU_LINUX_ANDROID_LA.AF.1.1_RB1.05.00.00.006.011 on remote branch

Change-Id: I219d42727f252243146849121575863d0d3179f9
libgralloc: Add support for custom buffer size

This reverts commit 3324a37ecbf1e009840004b37a880cd547de69f2.

Change-Id: I635e10e3dbc8cddcd112231385e1ff9ada251eba
Merge "libgralloc: Add support for custom buffer size" into LA.AF.1.1_rb1.6