New optimization via gnu dispatching
Removed debug include and added comment
Initialize m_android_wlegl
Fix wayland roundtrip routine
Merge pull request #194 from sharpneli/master

Zero call overhead glesv2 wrapper
Merge pull request #225 from giucam/misc_fixes

Little misc fixes in the wayland platform
Clean egl_window's pointers to WaylandNativeWindow when deleting it
Extract headers for log

Signed-off-by: Simonas Leleiva <simonas.leleiva@meramo.co.uk>
Merge pull request #227 from sledges/log

Extract headers for log
Merge pull request #226 from giucam/destroy_fix

Clean egl_window's pointers to WaylandNativeWindow when deleting it
[hybris] Don't leak gralloc buffers created by eglHybrisCreateNativeBuffer()

The same class is used to wrap buffers created by eglHybrisCreateNativeBuffer()
and eglHybrisCreateRemoteBuffer() but the difference is that a native buffer
is allocated (and needs to be free'd) while a remote buffer is registered and
needs to be unregistered only.

Since major changes in that code is not a wise idea, A flag has ben added to
RemoteWindowBuffer (m_allocated) so it can detect both cases and free the allocated
buffer and unregister the registered buffer.
Merge pull request #228 from foolab/master

[hybris] Don't leak gralloc buffers created by eglHybrisCreateNativeBuff...
Guard against too fast deletion of wl_buffers

When creating a wl_buffer using the android_wlegl protocol the server
registers with the native handle only when it processes the request later.
If the client destroys the wl_buffer and the native handle before the server
registers with it, the native handle will be gone and trying to register it
will fail. The server will then send a protocol error because it cannot know
the handle was valid when the client issued the request.
To solve it, register a wl_callback after creating the wl_buffer, which
will be used to block before destroying a buffer if the done event was not
fired yet.

Done-with: Jonas Ådahl <jadahl@gmail.com>
Merge pull request #230 from giucam/buffer_race

Guard against too fast deletion of wl_buffers
fix finishswap stuck forever in sync fence

Turns out on nexus5, not setting the flush flag makes client wait
forever in the finishswap fence.
increase runtime of test_glesv2

It was discovered that a file descriptor leak on fbdev mode would
manifest in a frozen client after around 15s. Therefore increase runtime
of the test and make runtime configurable.
Merge pull request #232 from heeen/master

Two changes for EGL and gles
Make binding helper macros available to out of tree components

Signed-off-by: Simon Busch <morphis@gravedo.de>
Switch to CLOCK_MONOTONIC_RAW instead of CLOCK_REALTIME

Using CLOCK_REALTIME can cause problems as it's time value is influenced by different
sources where CLOCK_MONOTONIC_RAW is not. CLOCK_MONOTONIC isn't safe to use as on
linux systems it can be influenced by NTP as well.

Signed-off-by: Simon Busch <morphis@gravedo.de>
properties: when property service is not available list properties from cache

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