test_glesv2: run for 3 seconds and render to whole screen

exiting gives a chance to test the destructors too
render to the whole screen and clear to white to catch tearing in fbdev

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
fbdev_window: cleanups

I've used the same idea from wayland_window.cpp, having
the buffers placed in a std::list and marked busy/free via the busy
member.

Fixed the crash which apparently was caused by reference counting but
in fact was dequeueBuffer not calling incRef on the buffer.

v3: remove custom TRACE

v2: changed licensing from lgpl to apache2
    use DEBUG which is enabled bt --enable-debug

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
wayland_window: codestyle
wayland_window: cleanups

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
wayland-tearing-wip
eglplatform: lock when initializing
add fence sync