ui: Allocate the custom buffer size in the failure case also

The custom buffer size was not being honored if memory allocation
failed in the first pass.
Also - removing an unnecessary check.

Change-Id: Ie501b2dda3843454405fec05fc898fec5912bd06
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1
Don't use fence sync for qcom legacy

Change-Id: Ice64233a25edee763a36a3ba34230d1360a0d610
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1
Update Android.mk
Overlay support for legacy camera libs

Move http://review.cyanogenmod.com/#/c/13285/ to proper place for jellybean.

1. Rename OverlayHtc to Overlay in file names
2. Use BOARD_USES_LEGACY_OVERLAY to enable

Signed-off-by: Evan McClain <aeroevan@gmail.com>
Change-Id: Ib6afd1b610b1d3e263fcaa38585e7a1116baaf58
Merge branch 'cm-10.1' of github.com:Team-Hydra/android_frameworks_native into cm-10.1
Revert "Overlay support for legacy camera libs"

This reverts commit 69c57b87e874d53dfe1e10a6afab01d7585f5f6d.
Overlay support for legacy camera libs (correct patch)

Move http://review.cyanogenmod.com/#/c/13285/ to proper place for jellybean.

1. Rename OverlayHtc to Overlay in file names
2. Use BOARD_USES_LEGACY_OVERLAY to enable

Signed-off-by: Evan McClain <aeroevan@gmail.com>
Change-Id: Ib6afd1b610b1d3e263fcaa38585e7a1116baaf58
native: Add custom 32-aligned NV12 colorformat

- Add color format which is NV12 + 32 aligned stride and slice

Change-Id: Iea804c2642ffad98890cbfe2979d56443f07ffdc
Merge remote-tracking branch 'cm/cm-10.1' into cm-10.1
Revert "Revert "Fixed clang build error for libgui""

This reverts commit 882009082db1dc8af61557444e2dd0e696769c05.
Merge branch 'cm-10.1' of https://github.com/Team-Hydra/android_frameworks_native into bam6-pyramid