Revert "Forward-port surface dithering from CM10.1"

This reverts commit b006627b983805513e4b523eeda7864104c4961d.
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: I9ea82f3fd1d9caea22d4b1da843f2dedb2daf51b

Signed-off-by: Daz Jones <yuki@thebronasium.com>

Conflicts:

	libs/gui/Android.mk
Prefer 16bpp surface formats

Adds a property to use RGB565 surface formats for the opaque
surface default, enabled by default.

Change-Id: Iac9bbc8292a863e2ab86093df3ecf218e4ec61e1

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp
	services/surfaceflinger/SurfaceFlinger.h
separate mHeap-based screenshot from BOARD_EGL_NEEDS_LEGACY_FB

No need for the Exynos/Tegra legacy fb implementation on legacy
qcom. Add a separate flag for mHeap-based screenshot in case of
future extensions. Enable mHeap-based screenshot for legacy qcom
dislay.

Change-Id: I35ff015555f19a5ba2857ad3d765d02eb6b9acde

Conflicts:

	libs/gui/Android.mk
Forward-port surface dithering from CM10

This allows the use of 16-bit color displays without excessive color
banding; behavior can be controlled by the persist.sys.use_dithering
property.

Change-Id: I290ca4ed4787dc81ac756d9af92cd6a690865a08

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp
	services/surfaceflinger/SurfaceFlinger.h
fix typo

Change-Id: Icedb01a9389cbb018e8c4c076e55facc28bf67e3
libagl: Allow use of copybit to accelerate 2D rendering

This appears to fix the 2D performance issues on msm7225 and msm7227,
no more stutter in animations or transitions
Enable with TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true

Change-Id: If1e06dc2b7836e370053d1c664fe5192619e3015