frameworks: omap-enhancement: multi-gpu egl support

In order to support several GPU types from the same filesystem we
have expanded the egl.cfg definition to optionally support a cpu type.

The format of an egl.cfg entry is as follows:

display-id index egl-library-string [cpu]

where [cpu] is determined from the Android property ro.board.processor
(which is derived from the /sys/board_properties/soc/family)

When ro.product.processor is set the EGL library will verify the cpu
type when selecting an EGL implementation. When not set a cpu does not
need to be specified.

Change-Id: I3b8b758af643f96f3e624c9de8a970660c84b1f0
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
surfaceflinger: expose maximum supported texture size

OMAP_ENHANCEMENT

This patch extends surfaceflinger and corresponding
frameworks to allow wallpaper manager service to
see maximum supported texture size.

Change-Id: Ic3874d882c97bcc25fc12bf567208c85f9423ae3
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_native into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_native into jellybean
SurfaceTexture: Support for Buffer layout settings

Android native window and surface texture interfaces are
extended to support buffer layout configuration.
APIs have to been added for SurfaceTexture clients to
set a buffer layout and query current layout.

Change-Id: Id4d6513dd8f4a8785261a5622fb9d5f04b9d658e
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
SurfaceFlinger: Add S3D rendering support

Add support in SurfaceFlinger to understand S3D layers
and their associated S3D layout.

Output rendering formats supported include:
- Top/Bottom, Side-by-Side layouts
- Column/Row interleaving
- Red-Cyan Anaglyph

Depends on buflayout patch:
http://review.omapzoom.org/#/c/25710/

Change-Id: I1c48fb7dfa896b0e35c40d2705a667c1102e6891
Co-authored-by: Jagadeesh Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Jagadeesh Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/frameworks/native into jellybean
Merge remote-tracking branch 'sts/jellybean' into jb-kexec
[S3D] Fix checking for reading S3DHardware sysfs entries

Fix return value check when reading S3DHardware sysfs entries.
When sysfs entries cannot be opened (if there's no S3D hardware) log
with ALOGI as it's benign info.

Change-Id: I87b36193ae7cb085285de0411ee733d0a51d05f1
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
[SurfaceFlinger] S3D: Add support to tag surfaces from windows as S3D.

Add support for a client to signal stereo content is being drawn into a
a surface that belongs to regular window.

Change-Id: I1b136affa4b37ac062d51968d7180570e070f440
Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Signed-off-by: Devaraj Rangasamy <dev@ti.com>
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_native into jellybean
Merge branch 'jellybean' of git://github.com/CyanogenMod/android_frameworks_native into jellybean
Add client implementation to acquire buffer

Add a method for surface texture clients to be able to
acquire buffer for tap-in points.

Change-Id: Ib0e4e178e95259ae8e5dd5ca9fd767f69bc3d6cf
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
add S3DFormat.h for hwc compile

Change-Id: Ia4a58eca7e7667635fff927fd78da6f1f650d04c
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/frameworks/native into jellybean

Conflicts:
	services/surfaceflinger/Android.mk
Merge branch 'jellybean' of github.com:STS-Dev-Team/android_frameworks_native into jellybean
Add metadata passing through SurfaceTexture

This patch passes metadata information through
a shared memory container containing camera_metadata_t

Change-Id: I77bf909f4a1e08f91a8e34b7867faeb6f7f185f3
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
SurfaceTexture : Method to add a buffer to buffer slot

This patch adds a method for clients to add their own graphic buffer
to the buffer slots array. Currently only support for adding
a buffer before the first dequeue is tested.

Depends on system/core change Ic65652a5:
http://review.omapzoom.org/#/c/23586/

Change-Id: Ia5f695b3c116064cb5e74747dc96effe4fbc077b
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
Add method to get buffer from BufferQueue

For a given slot index, return the BufferSlot information for that
given index without changing the state the buffer. This method
allows user to just peek and get information regarding this buffer slot.

Change-Id: I782b35a8ef03b019a6e1a833e86da07a3ef1f019
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
Merge branch 'p-jb-release' of git://git.omapzoom.org/platform/frameworks/native into jellybean