Unbreak libgui

Change I2c0f05d1f70b96ad801971f23f6f9cf4e0fa7167 broke libgui for a
bunch of pre-4.1 blobs by changing the surfaceclient API, so bring
it back

Change-Id: I1f6ce3b886539d0e972bbe41116192bf162be968
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_frameworks_native into jb43
surfaceflinger: Handle screen timeout on hw without vsync

timeout currently at 1 second waiting for vsync. With
this change timeout happens at 16ms.

Change-Id: If18c61446b8847df994118009fecd7f1acc088c5
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Graphics:Add error check when create GraphicBuffer

Change-Id: Ib0ca59bf1dfe4ae0266c29c91c1dbe3d02c0904e
Author: Lingyun Zhu <lingyun.zhu@intel.com>
Signed-off-by: Lingyun Zhu <lingyun.zhu@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: 50141
Merge remote-tracking branch 'scotthartbti/jb43' into beanstalk-jb43

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

Change-Id: I2d70feeec9687ffe0a2d990d3e7a496c2944c89e
Fix #endif derp

Change-Id: If3b21b91482637e8896acf225e8dbfcebcee6f6b