Simplify HWC and FB hal check

Change-Id: I0d005e3bb092b75ba281b89bb4e86d534f7f23de

Conflicts:

	services/surfaceflinger/DisplayHardware/HWComposer.cpp
MemoryHeapBase: ifdef for gingerbread/froyo compatibility

This change is required to use overlay based proprietary camera libs
coming from gingerbread and froyo builds.

This change also requires a global cflag named BINDER_COMPAT
because a lot of modules use the MemoryHeap includes

Add this in your BoardConfig.mk :
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT

Backported from /#/c/13317/

Change-Id: I919a2a89d5efa0eab5ef286979fcd823b62a363c
Select texture target based on pixel format

Adreno is not optimized for GL_TEXTURE_EXTERNAL_OES, making GPU
utilization (and power), high with GL_TEXTURE_EXTERNAL_OES for
RGB formats.

Change texture target from GL_EXTERNAL_TEXTURE_OES to dynamically
select between GL_EXTERNAL_TEXTURE_OES, and GL_TEXTURE_2D based
on the pixel format.

CM9 original author: Neti Ravi Kumar
CM9-Change-Id: I89ab1d60b23eef55442a9fd338b2a05b3304ce61

Change-Id: Idb32b80c9ee06eb83e9822c1b63adef20828409b
Libcamera (SEMC) fix for using eclair libcamera (2/3)

This can be turned on by setting the following:
    BOARD_USES_ECLAIR_LIBCAMERA=true
    BOARD_NEEDS_MEMORYHEAPPMEM := true
    COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT
    COMMON_GLOBAL_CFLAGS += -DECLAIR_LIBCAMERAű

Patchset 1: Initial commit
Patchset 2: Rebase
Patchset 3: Remove spaces from "include/binder/MemoryDealerEclair.h" and "libs/binder/MemoryDealerEclair.cpp"
Patchset 4: Fix build warning: "libui_intermediates/Overlay.o' given more than once in the same rule"

Change-Id: Ie794bfb8d1d1c9235ebbb145bc3e05fc5079af57
Fix wrong place of DECIDE_TEXTURE_TARGET in surfaceflinger

Change-Id: I5f6dd4af00ddeccdebe09251195a235f17ef86df
Select texture target based on pixel format

Adreno is not optimized for GL_TEXTURE_EXTERNAL_OES, making GPU
utilization (and power), high with GL_TEXTURE_EXTERNAL_OES for
RGB formats.

Change texture target from GL_EXTERNAL_TEXTURE_OES to dynamically
select between GL_EXTERNAL_TEXTURE_OES, and GL_TEXTURE_2D based
on the pixel format.

This change is done to reduce the composition time for 8x55

Change-Id: I89ab1d60b23eef55442a9fd338b2a05b3304ce61

Conflicts:
	libs/gui/SurfaceTexture.cpp
	services/surfaceflinger/Layer.cpp
Prevent the apocalypse when building on msm7x27a

Change-Id: I24cf0923fff07b146a2650b70e246f85cb6535a3