From ba5c1f674511aff458dae69927a1c61d60e66aa1 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Tue, 8 May 2012 15:44:35 -0700 Subject: 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 --- vl-android.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'vl-android.c') 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), -- cgit v1.1