Buffer management cleanups for Wayland platform

Instead of reallocating the whole stack of buffers at once when attributes
(dimensions, format, usage..) change, let's reallocate one-by-one when the
buffers are dequeued. This will save reallocations in situations where
multiple attributes are changed in succession, which is common when starting
up.

Also make setBufferCount() avoid reallocations by just adjusting the buffer
list size towards the desired rather than reallocating the whole list.

As a bonus, we now also react to wl_egl_window resizes.
Merge pull request #92 from kvahlman/wayland-buffer-cleanup

Buffer management cleanups for Wayland platform
Make sure that Wayland window can do debugging/trace

Some additional logging improvements, so we can send these things to
kernel trace marker, for instance. Also fix minor issue in configure.ac

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #93 from stskeeps/debugging_trace_wayland_etc

Make sure that Wayland window can do debugging/trace
configure.ac: give extract-headers.sh as hint if android-headers are missing

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
extract-headers: nitpicks

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
Merge pull request #94 from groleo/tz

configure.ac: give extract-headers.sh as hint if android-headers are missing
hwcomposer: fix parallel builds

libhybris-hwcomposerwindow.la was not built before eglplatform_hwcomposer.la thus the error.
this leaves only eglplatform_hwcomposer.la

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
Merge pull request #95 from groleo/tz

hwcomposer: fix parallel builds
Revert "hwcomposer: fix parallel builds"

This reverts commit 151fe1dfad8f6b9ce75b5b81dea657b78c013c58.
The library *is* actually used by more than test_hwcomposer,
for example by Carstens' qt hwcomposer platform plugin.
Merge pull request #96 from groleo/tz

Revert "hwcomposer: fix parallel builds"
[v2] hwcomposer: fix parallel builds

libhybris-hwcomposerwindow.la was not built before eglplatform_hwcomposer.la thus the error.

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
tests: link test_hwcomposer with libhardware

it's used for hw_get_module

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
Merge pull request #97 from groleo/tz

fix parallel build
utils: fixes for load_sym_files.py

print symdir and libdir in case they don't exist
also, gdb versions prior to 7.4, have no selected_inferior() method

Signed-off-by: groleo <adrian.m.negreanu@intel.com>
Merge pull request #98 from groleo/tz

utils: fixes for load_sym_files.py
Fix last argument to pthread_cond_timedwait

pthread_cond_timedwait() last argument is const struct timespec *
We are mistakenly passing const struct timespec ** which leads to
a failure.
Merge pull request #99 from foolab/cond_timedwait

Fix last argument to pthread_cond_timedwait
Don't lock the mutex while posting buffer.

Also, it's sometimes OK to take the front buffer but avoid if possible.
Only on < 4.2

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #100 from stskeeps/performance_optimization_mutex_fbdev

Don't lock the mutex while posting buffer.