Add armhf support by Steve Langasek/Canonical, approved by Michael Frey. Additional wrappers from Kevin DuBois

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge code to improve hooks and stability, but don't import nvidia hack.\n Code by Canonical: Ricardo Salveti de Araujo, Daniel d'Andrada, Jim Hodapp, Michael Frey, Thomas Voss

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Add stub for hw_get_module_by_class

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
configure: add --enable-mesa

* define MESA_EGL_NO_X11_HEADERS in include/EGL/eglplatform.h
  unless there is --enable-mesa configure parameter

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>

Conflicts:
	glesv2/glesv2.c
Move all offscreen rendering bits from tests to libEGL

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl/tests: some formatting cleanups and separate OffscreenWindowBuffer class

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: include FramebufferNativeWindow too and adjust automatic creation of a native window

Somehow supplying the gralloc/alloc modules as reference to the FramebufferNativeWindow
does not work and leads into random segfaults.

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: return the correct offscreen front buffer when asked for it

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: implement virtual postBuffer method for offscreen window class

Possible subclass of the OffscreenNativeWindow have to implement the postBuffer method to
send the buffer to the compositor process for further processing in the rendering process.

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: move filedescriptor receiving logic from c'tor into separate method

Signed-off-by: Simon Busch <morphis@gravedo.de>
Install android specific header files for reference purpose

They are needed by our offscreen/fb window implementation. Later we should try to refactor
the code to not depend on them directly anymore when used by possible client applications.

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: refactor offscreen rendering code

* cleaner header dependencies
* less implementation in header files
* global header eglhybris.h for client applications

Signed-off-by: Simon Busch <morphis@gravedo.de>
fixes compositing test

the test only swapped once, which is not enough to verify it works.
With this change it works continuosly on my gnex
egl: rework framebuffer window creation

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: rework offscreen rendering buffer sharing functionality to be more reliable

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: remove unnecessary printf debug statement

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: add virtual method to offscreen buffer class to let clients handle dequeued buffers

Signed-off-by: Simon Busch <morphis@gravedo.de>
egl: implement resizing of offscreen buffers

Buffers which aren't sized correctly are resized immediately but buffers which are in use
are resized before they are used the next time.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Add 'ONLYONCE' to prevent crash on Qualcomm for offscreen rendering test

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Actually remember to add the format and usage you received

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>