eglplatform: lock when initializing

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
test_glesv2: run for 3 seconds and render to whole screen

to test the destructors, the test terminates after 3 seconds;
also, to catch tearing, the whole screen is cleared to white
and the spiral rendered w/o downscale

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.

Also added documentation for most of the methods

After debugging with Carsten, fb->post is now used correctly by
adding checks for frontbuffer in ::dequeueBuffer.

[carsten] nailed the second cond_wait when cond was signaled but no
          buffers were actually available

[carsten] makefile.am changes to make it aware of --enable-debug

[carsten] add need_realloc, to trigger buffer reallocation

v3: remove custom TRACE

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

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
Merge pull request #38 from groleo/for-upstream

Reimplement FbDevNativeWindow
configure: add --enable-trace

Previously, --enable-debug did that but also added debug symbols.
This enables the TRACE statements separately from debug symbols

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
Merge pull request #39 from groleo/for-upstream

configure: add --enable-trace
add ANDROID_VERSION macro

gingerbread is 0x230
icecreamsandwich is 0x400
jellybean is 0x410

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
Merge pull request #40 from groleo/for-upstream

add ANDROID_VERSION macro
fbdev: fix strerrno since fb->post returns -errno

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
fb.h: add numFramebuffers for JB

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
fbdev: on JB, make use of fb->numFramebuffers

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
Wrap writev

This is used by android logging routines

Signed-off-by: Mohammed Hassan <mohammed.hassan@jollamobile.com>
Merge pull request #42 from groleo/fbdev-fixes

Fbdev fixes
Merge pull request #41 from foolab/writev

Wrap writev
Random build warning fixes (implicit declarations etc)

	Fix a number of gcc warnings during build.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Add gps support

	hybris/include : Add gps support header
	hybris/tests :  Add gps test program

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
avoid some possible segfaults

	Improve gps test program with some more checks so it crashes
	less when there are issues with the binary blobs.

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

Libhybris gps
Merge pull request #44 from philippedeswert/hybris-fixes

Random build warning fixes (implicit declarations etc)
Fix configuration for ANDROID_VERSION to have a value in all cases

When configured without setting a linker version explicitly through --enable-alinker a
specific android version is never set but the gingerbread linker. The version should be
set to a default value as well.

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