Gralloc: fix compilation with QCOM Board Service Package (BSP) enabled

Signed-off-by: Sultanxda <sultanxda@gmail.com>
copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
pmemalloc: fix GCC 4.7 errors

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Id5d7bc86780bd716b97257400e15793c29ff4dfb
librgralloc: gralloc_priv.h: Define GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY
Remove PMEM parts
gralloc: Allow legacy devices to use PMEM for ADSP (camera).

Partially bring back PMEM support for legacy devices having proprietary camera
libraries stuck in PMEM. This change allows these devices to continue using
PMEM for the camera, and ION for everything else.

Change-Id: I1afbc7d137b3d49b2ab3e53917b16fd920ea140b

Conflicts:
	libgralloc/Android.mk
	libgralloc/alloc_controller.h
libgralloc: alloc_controller.h: Use smart pointer for PmemAdspAlloc

I have no idea what I'm doing.
pmemalloc: Fix compilation

Thanks to professorpasta on XDA for pointing out why it wasn't compiling.
libgralloc: Add back support for PMEM SMI

Needed for our PMEM video controller and PMEM camera libs.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Add missing pieces for PRIV_FLAGS_USES_PMEM_SMI flag

Signed-off-by: Sultanxda <sultanxda@gmail.com>
libgralloc: Rename USE_PMEM_ADSP to USE_PMEM_CAMERA

This flag enables PMEM SMI and PMEM ADSP, not just PMEM ADSP.
libgralloc: Remove PMEM SMI

Videos weren't playing back with PMEM SMI so there is no need for it anymore.
gralloc: Inherit ION definitions from kernel

WHO PUT ION_MSM.H HERE?! GAH!
framebuffer: Use 3 buffers

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Revert "libgralloc: Remove PMEM SMI"

This reverts commit 8296d9e6fe0fe5fd46ff63542073ef8113190deb.
STFU! we know we are using ION

Change-Id: Iffac8854877a36dc65727b18079a6bc60ebaa0ec
Merge branch 'cm-11.0' into kk

Conflicts:
	libgralloc/pmemalloc.cpp