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