sensorservice: Add legacy sensors fusion.

This change allows devices with accelerometer & magnetometer but
without gyroscope to still get virtual sensors such as Gravity,
Linear Acceleration and Rotation Vector.

Change-Id: Ibb90b70845c766ab52c843557446e34649a7d6d9
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
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 'CyanogenMod/cm-10.1' into cm-10.1
Don't use fence sync for qcom legacy

Change-Id: Ice64233a25edee763a36a3ba34230d1360a0d610
Revert "Revert "libgui: Use fences for all QCOM targets""

This reverts commit cbc98d220e1b8698da45ae628d9a7161236a9334.
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
fix for DECIDE_TEXTURE_TARGET

DECIDE_TEXTURE_TARGET hack wasn't correctly handling the
BufferRejecter that was added in JB. On rare occasions this
resulted in graphical corruption when wrong texture target
was called from BufferRejecter. Move DECIDE_TEXTURE_TARGET
switch before the rejecter to take care of this.

Change-Id: I82d604ff2f89f77d2736c2a5c0ba01e2eab2b308
native: Add custom 32-aligned NV12 colorformat

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

Change-Id: Iea804c2642ffad98890cbfe2979d56443f07ffdc
SurfaceFlinger: Removal of NO_RGBX_8888 flag for OMAP3

Removing this will allow color format of surface to be set for RGBX8888
that can improve performance for 32 bit framebuffer.

Tested on Nook Color with CM10
TI's commit can be found here:
review.omapzoom.org/#/c/21374/3

This will also remove the need to have BOARD_NO_RGBX_8888 := true
in the BoardConfig.mk

Change-Id: Ibc6e56c992a6433bc8688d88471d4feb9084278c
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
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.

Incorporates http://review.cyanogenmod.org/19532 from CM10 as well as
code removed in upstream commit 1b03149.

Change-Id: I290ca4ed4787dc81ac756d9af92cd6a690865a08
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1
Revert "surfaceflinger: Enable dithering if persist.sys.use_dithering=1|2"

This reverts commit f1e55a632098355bf6daea786b20509e7c886ee4.

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp
	services/surfaceflinger/SurfaceFlinger.h

Change-Id: I5b7fe8060fc38b581b5717bc1297fdf9dc726c03
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.

Incorporates http://review.cyanogenmod.org/19532 from CM10 as well as
code removed in upstream commit 1b03149.

Change-Id: I290ca4ed4787dc81ac756d9af92cd6a690865a08

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp
	services/surfaceflinger/SurfaceFlinger.h
DisplayDevice: initialize mDisplayToken correctly

mDisplayToken should be initialized by displayToken.

Change-Id: I0a5fec1f1732200a32d10b1575239dceffe6dee4
Gfx-3d: fix GetProcAddress in egl extention

This patch can fix issue when Proc address return NULL.
Glbench10, egl-ext and conformance test need this patch to run pass.

Change-Id: I275c7cb6f77cb334c3ee7fa23cd696bba1c5a458
Author: Liuhui Lu <liuhui.lu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 52622
Merge "sensorservice: Add legacy sensors fusion." into cm-10.1
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp
	services/surfaceflinger/SurfaceFlinger.h