aboutsummaryrefslogtreecommitdiffstats
path: root/android/opengles.h
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2011-09-12 18:21:58 +0200
committerDavid 'Digit' Turner <digit@google.com>2011-09-13 18:41:10 +0200
commit7b56a4a9a250573d5bdb8d04a2d8a64937432832 (patch)
tree2a0173464a0b4c19e3d6cff2aef93649acb86700 /android/opengles.h
parent4939812780883255043a09eceaf607263f30fde4 (diff)
downloadexternal_qemu-7b56a4a9a250573d5bdb8d04a2d8a64937432832.zip
external_qemu-7b56a4a9a250573d5bdb8d04a2d8a64937432832.tar.gz
external_qemu-7b56a4a9a250573d5bdb8d04a2d8a64937432832.tar.bz2
gles: use fast GLES pipe by default (Unix only)
This improves performance of various benchmarks by 5% Change-Id: If2d2be0e9849429ecffe52b7d482cfbee4008473
Diffstat (limited to 'android/opengles.h')
-rw-r--r--android/opengles.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/opengles.h b/android/opengles.h
index b31ce11..2202e92 100644
--- a/android/opengles.h
+++ b/android/opengles.h
@@ -12,6 +12,8 @@
#ifndef ANDROID_OPENGLES_H
#define ANDROID_OPENGLES_H
+#include <stddef.h>
+
#define ANDROID_OPENGLES_BASE_PORT 22468
/* Call this function to initialize the hardware opengles emulation.
@@ -34,4 +36,13 @@ void android_redrawOpenglesWindow(void);
/* Stop the renderer process */
void android_stopOpenglesRenderer(void);
+/* set to TRUE if you want to use fast GLES pipes, 0 if you want to
+ * fallback to local TCP ones
+ */
+extern int android_gles_fast_pipes;
+
+/* Write the path of the Unix socket we're going to use to access GLES on a given <port> */
+/* The result is only valid on Unix systems */
+void android_gles_unix_path(char* buff, size_t buffsize, int port);
+
#endif /* ANDROID_OPENGLES_H */