Adjust for native window API changes for sync fence support

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

Signed-off-by: Simon Busch <morphis@gravedo.de>
Implement new native window API method setBufferCount

Signed-off-by: Simon Busch <morphis@gravedo.de>
Link against libhybris-eglplatformcommon

Signed-off-by: Simon Busch <morphis@gravedo.de>
Mark buffer as still used when it's returned to our native window implementation

Signed-off-by: Simon Busch <morphis@gravedo.de>
Implemented dynamic buffer count support.

 * one drawback is that the "bufferCount()" method isn't static anymore, so the HostWindowOpenGLHybris has to pick a number itself.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Add proper reference counting and correct buffer resizing

Signed-off-by: Simon Busch <morphis@gravedo.de>
Supply a buffer handle through c'tor and unregister buffer for process and buffer destruction

Signed-off-by: Simon Busch <morphis@gravedo.de>
Move protocol message definition to separate header to be shared accross different components

Signed-off-by: Simon Busch <morphis@gravedo.de>
Rework WebosSurfaceManagerRemoteClient to handle different message types

Signed-off-by: Simon Busch <morphis@gravedo.de>
Implement method to send message to restore a buffer after rendering

Signed-off-by: Simon Busch <morphis@gravedo.de>
Remove unneeded increment of buffer reference count

Signed-off-by: Simon Busch <morphis@gravedo.de>
Move buffer allocation into own class

Signed-off-by: Simon Busch <morphis@gravedo.de>
Track buffer handle ownership to free either the handle or the actual memory

Signed-off-by: Simon Busch <morphis@gravedo.de>
Move surface manager client communication into own thread

Signed-off-by: Simon Busch <morphis@gravedo.de>
Use correct usage value for buffer creation

Signed-off-by: Simon Busch <morphis@gravedo.de>
Don't depend on libhybris anymore to provide TRACE macro

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