gles: use fast GLES pipe by default (Unix only)
This improves performance of various benchmarks by 5%
Change-Id: If2d2be0e9849429ecffe52b7d482cfbee4008473
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 @@
/* 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 */