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>
common: add modifications canonical did as part of their phablet project

See https://code.launchpad.net/~phablet-team/phablet-extras/llibhybris for more details
and commit history.

Taken from revision 122.

Signed-off-by: Simon Busch <morphis@gravedo.de>
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>
common: be less verbose and remove unneeded debug statements

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: minor cleanups to EGL API implementation

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>