add BoardConfig flag TARGET_USES_OPENGLES_FOR_SCREEN_CAPTURE

This flag forces usage flags:
GRALLOC_USAGE_HW_TEXTURE and GRALLOC_USAGE_HW_RENDERER
in captureScreenImplLocked regardless of useReadPixels value

This fixes the EGL_NO_IMAGE_KHR error returned from
eglCreateImageKHR (blank images returned from screenshot path)

Change-Id: Ia782a918501b4fd40a58eef71c404584a44b8073

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp
Revert "add BoardConfig flag TARGET_USES_OPENGLES_FOR_SCREEN_CAPTURE"

This reverts commit 294c8dc094b958dd3375acf54b4114134a85b5fb.

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp
sf: Always use opengles for screen capture

Go back to the usage of GRALLOC_USAGE_HW_TEXTURE and GRALLOC_USAGE_HW_RENDERER
in captureScreenImplLocked regardless of useReadPixels value

This fixes the EGL_NO_IMAGE_KHR error returned from
eglCreateImageKHR (blank images returned from screenshot path)

Change-Id: I62fe90a081607b9e89c67f3dcfd34c84efc89d35

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp
sf: work around for no EGL_RENDERABLE_TYPE support

Conflicts:
	services/surfaceflinger/SurfaceFlinger.cpp

Change-Id: I04de379c73fc349526527ded9ddd3dd07f1998a0
GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
sensorservice: Fix init sequence for pre-1.1 API sensor HALs

The sensors API introduced a new flush() method that older binaries
won't have. For those, replace the firstFlush invocation with a
setDelay call since a lot of implementations interpreted that as
the initialization step.
We also don't want any kind of call to flush() to happen when it
isn't there, since it'll either hit a random OEM extension or
a memory address we really don't want to execute.

Change-Id: I26ce923fe385751fed7d1c483a53c074249f0620
native: added null check and remove EGL fallback

Change-Id: I589a1b0eae4c885ada1ee58a69bf2bcace822a45

Conflicts:
	services/surfaceflinger/Layer.cpp
	services/surfaceflinger/SurfaceFlinger.cpp
native: go back to default heap sizes

causes on some devices to much problems. The one which want
to have a higher value can set it in device tree

Change-Id: Ie9fcd45ce5ea7ba34690c6c9d9320bb7b76bb7a5
Update HWUI config for xxhdpi/2GB devices

Change-Id: Ic9ba16b0360f2b755a1d23aa51eddc61beee2bac

Conflicts:
	build/phone-xxhdpi-2048-hwui-memory.mk
sensorservice: Set the rate for pre-1.1 HALs _after_ activation

We want to be sure these are applied in the same sequence they
used to be...

Change-Id: Ied2ba08ed3c4bed3a80bac6ab5471fcea9ba2c09
native: go back to our custom heap sizes

after eliminating the problems we had we can go back

This reverts commit 5ee007698de14ae5491f5f124c3e2f8fa11520be.

Change-Id: I4a06f890ef36142732d26e0c88355c70e39a9f35
Fix boot animation rotation problem when ro.sf.hwrotation is set to 90 or 270

Change-Id: I7ad3c83e23ce38280818ec5283d173d50c889531

Conflicts:
	services/surfaceflinger/DisplayDevice.cpp
surfaceflinger: Consolidate display orientation compensation hooks

Dedupe rotation calculation code and make rotation a statically
available property in the DisplayDevice
Change-Id: Ic517ab0d2c05026cd6fa46d664aab7926be17b62

Conflicts:
	services/surfaceflinger/DisplayDevice.cpp