aboutsummaryrefslogtreecommitdiffstats
path: root/vl-android.c
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-05-08 15:44:35 -0700
committerJesse Hall <jessehall@google.com>2012-05-10 11:50:16 -0700
commitba5c1f674511aff458dae69927a1c61d60e66aa1 (patch)
treed279d4a506bee2b5aabf37c5432e23cfc309939a /vl-android.c
parent291744a651760261527f0bf66a7573d4a94a862e (diff)
downloadexternal_qemu-ba5c1f674511aff458dae69927a1c61d60e66aa1.zip
external_qemu-ba5c1f674511aff458dae69927a1c61d60e66aa1.tar.gz
external_qemu-ba5c1f674511aff458dae69927a1c61d60e66aa1.tar.bz2
Remove init-time GLES per-frame callback
The GLES renderer interface now allows the per-frame callback to be registered after initialization. This change updates the emulator to use the new interface. Since reading back completed frames is slow (due to pipeline flush/stall), a future change will enable the callback only while multitouch emulation is actually in use. Change-Id: I7ad23b4bebe1bd3077863da4d50333cc0578519e
Diffstat (limited to 'vl-android.c')
-rw-r--r--vl-android.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/vl-android.c b/vl-android.c
index 1513541..f9afa5c 100644
--- a/vl-android.c
+++ b/vl-android.c
@@ -3877,15 +3877,8 @@ int main(int argc, char **argv, char **envp)
* we just shut it down again once we have the strings. */
{
int qemu_gles = 0;
-
- /* Set framebuffer change notification callback when starting
- * GLES emulation. Currently only multi-touch emulation is
- * interested in FB changes (to transmit them to the device), so
- * the callback is set within MT emulation. */
if (android_initOpenglesEmulation() == 0 &&
- android_startOpenglesRenderer(android_hw->hw_lcd_width,
- android_hw->hw_lcd_height,
- multitouch_opengles_fb_update, NULL) == 0)
+ android_startOpenglesRenderer(android_hw->hw_lcd_width, android_hw->hw_lcd_height) == 0)
{
android_getOpenglesHardwareStrings(
android_gl_vendor, sizeof(android_gl_vendor),