aboutsummaryrefslogtreecommitdiffstats
path: root/android/opengles.h
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 /android/opengles.h
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 'android/opengles.h')
-rw-r--r--android/opengles.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/android/opengles.h b/android/opengles.h
index 4e83c02..aac6249 100644
--- a/android/opengles.h
+++ b/android/opengles.h
@@ -16,10 +16,6 @@
#define ANDROID_OPENGLES_BASE_PORT 22468
-/* See the description in render_api.h. */
-typedef void (*OnPostFunc)(void* context, int width, int height, int ydir,
- int format, int type, unsigned char* pixels);
-
/* Call this function to initialize the hardware opengles emulation.
* This function will abort if we can't find the corresponding host
* libraries through dlopen() or equivalent.
@@ -30,8 +26,12 @@ int android_initOpenglesEmulation(void);
* At the moment, this must be done before the VM starts. The onPost callback
* may be NULL.
*/
-int android_startOpenglesRenderer(int width, int height,
- OnPostFunc onPost, void* onPostContext);
+int android_startOpenglesRenderer(int width, int height);
+
+/* See the description in render_api.h. */
+typedef void (*OnPostFunc)(void* context, int width, int height, int ydir,
+ int format, int type, unsigned char* pixels);
+void android_setPostCallback(OnPostFunc onPost, void* onPostContext);
/* Retrieve the Vendor/Renderer/Version strings describing the underlying GL
* implementation. The call only works while the renderer is started.