Fix

Change-Id: If5a668f35c610f70e4b7677f62d43dcda7205326
surfaceflinger: Fix legacy qcom display

This change: http://review.cyanogenmod.org/50222 disabled code
that is needed for legacy qcom using jb mr0 adreno blobs. Reenable
the needed code when qcom display variant is "legacy"

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

Change-Id: Ib36fb5388b941416e364db2109fdc7624a168563

Conflicts:
	include/gui/SurfaceComposerClient.h
	libs/gui/SurfaceComposerClient.cpp
Fix

Change-Id: Id35b4206048598e5cb86084bf1d195f0e8e63fb2
Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_frameworks_native into cm-10.2

Conflicts:
	include/gui/SurfaceComposerClient.h
	libs/gui/SurfaceComposerClient.cpp

Change-Id: I17314bb9ccb76fbef93e0e6c695a65c81e8c35cf
Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_frameworks_native into cm-10.2

Conflicts:
	include/gui/SurfaceComposerClient.h
	libs/gui/SurfaceComposerClient.cpp

Change-Id: Icc16aeb9709b4daf258213dd950a489ea0666291
Fix

Change-Id: I0af31390d04354260e7fcc04dd14a7b1c24f7a44

Conflicts:
	include/gui/SurfaceComposerClient.h
	libs/gui/SurfaceComposerClient.cpp
surfaceflingerconsumer: 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
*Ported from ics
*ifdef for BOARD_ADRENO_DECIDE_TEXTURE_TARGET

*Ported to Android 4.3

Change-Id: I2ec2ceeee6b201d4d2c8e8227ccb4789f957da23