Additional parameter validation for EGL functions

Change-Id: I841d005647559799edbc2c4824c61ea5791cf893
EGL: Fix error for eglCreateWindowSurface

The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set
if the supplied window already has an associated EGLSurface, not
EGL_BAD_NATIVE_WINDOW as is currently set.

Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc
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
surfaceflinger: Work around aliasing violations

Change-Id: I22e758390c1312e60bb4adac2365be201ba6f161
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	services/surfaceflinger/Android.mk

Conflicts:
	services/surfaceflinger/Android.mk

Conflicts:
	services/surfaceflinger/Android.mk
gldual: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

Conflicts:
	opengl/tests/gldual/Android.mk

Change-Id: I15c485a04f1cff0f6c69220e5bbb31924aa59571
gl_perfapp: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

Conflicts:
	opengl/tests/gl_perfapp/Android.mk

Change-Id: I3cf81b9e14d1c127b6a9a608bfe64a8257bb8739
gl_jni: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

Conflicts:
	opengl/tests/gl_jni/Android.mk

Change-Id: I879bdda5d771cd091364ed3249cc29db0de45ac0
frameworks/native: Fix build in ISO C++ 11 mode

Fix constructs that are considered new string literals in C++ 11 mode

Change-Id: Ifa28c5ce45994e9ff92e8b008d5962c728d0a416
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
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>
Fix OpenGL stub exception handling.

Bug: https://code.google.com/p/android/issues/detail?id=60390
Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917