Merge pull request #139 from kvahlman/revert-deadlocking

Revert "egl: wayland: Avoid a crash that is likely some race condition"
Add ability to do tracing with begin/end/counters and systrace output
Try to avoid getting the youngest == just released from screen.

Some GPUs stay with wayland buffers past release and this helps this scenario

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

Tracing and wayland fix
tests: add HAS_ANDROID_4_2_0 to CFLAGS for test_gps

test_gps uses HAS_ANDROID_4_2_0 to determine the right GPS API to call and without
forwarding the define at compilation time it fails to compile if the wrong header set is
installed within sysroot which doesn't provide the old API.

Signed-off-by: Simon Busch <morphis@gravedo.de>
Merge pull request #141 from morphis/morphis/work

tests: add HAS_ANDROID_4_2_0 to CFLAGS for test_gps
[test_gps] Improve agps support

* The SUPL api seems very sensitive to the AGPS type
* Get more info about the sattelites
* Check AGPS SUPL connection handling

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Merge pull request #142 from philippedeswert/agps

[test_gps] Improve agps support
test_gps: fix compile breakage

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #143 from groleo/test_gps

test_gps: fix compile breakage
code style janitor

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
get rid of some code duplication

put android_wlegl_create_buffer boilerplate code into
wlbuffer_from_native_handle.

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
drop WaylandNativeWindowBuffer::getHandle

no one is using it anyway

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
clean some of the format warnings

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #144 from groleo/master

code style janitor
remove extra parameter of HYBRIS_TRACE_RECORD

wayland_window.cpp:255:5: warning: format '%i' expects argument of type
'int', but argument 7 has type 'const char*'

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
logging.h: replace tab w/ space

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #145 from groleo/master

remove extra parameter of HYBRIS_TRACE_RECORD
egl: fbdev: Use refcounting to manage window and buffer lifetime

As per the promises made in ANativeWindow interface, we can't assume that
we hold the only references to the buffers. Although not mentioned out loud,
in practice this seems to be true for windows as well.

Supporting multiple windows seems nontrivial due to limited buffer space
in the framebuffer so currently we will quite likely fail to allocate buffers
for a second window. In some cases even when the previous window has been
released by us (but not by eg. EGL drivers).

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
elg: fbdev: Fix cancelBuffer() behaviour, clean up dead code

We should make the cancelled buffer available for use again and update
our bookkeeping in cancelBuffer().

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>