Android: Rewrite lcd subsystem to use the SurfaceView API.
commitd2955a156731ceff42e4e416e7250bf535429ff6
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Feb 2011 01:13:38 +0000 (19 01:13 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Sat, 19 Feb 2011 01:13:38 +0000 (19 01:13 +0000)
tree237abe424decc33b7c1e9c8caa89b5a18cf0dd88
parentab04bdcf897904025f35b9082916b5ca21bc45e6
Android: Rewrite lcd subsystem to use the SurfaceView API.

That enables drawing from outside the apps UI thread, i.e. from within the Rockbox native thread, without needing synchronization means, and adds determinism as to when the draw happens.
It simplifies the drawing routines and adds a convinient way of detecting whether drawing should happen or not (surfaceCreated/Destroyed).
It also restores max. fps on my phone which went down drastically with the gingerbread(CM7) update.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29333 a1c6a512-1295-4272-9138-f99709370657
android/src/org/rockbox/RockboxActivity.java
android/src/org/rockbox/RockboxFramebuffer.java
android/src/org/rockbox/RockboxService.java
apps/keymaps/keymap-android.c
firmware/target/hosted/android/app/button-target.h
firmware/target/hosted/android/lcd-android.c