summaryrefslogtreecommitdiffstats
path: root/core/jni/com_google_android_gles_jni_GLImpl.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-05-08 15:35:17 -0700
committerMathias Agopian <mathias@google.com>2009-05-08 17:18:55 -0700
commit8331f72078051cdf5a26230ee819f7ef7f9fcc24 (patch)
tree16b20bd6033861b728038ebf7ac735cf3e739b00 /core/jni/com_google_android_gles_jni_GLImpl.cpp
parent2accb31239cf7a3cad77b51baed4b23934636e5b (diff)
downloadframeworks_base-8331f72078051cdf5a26230ee819f7ef7f9fcc24.zip
frameworks_base-8331f72078051cdf5a26230ee819f7ef7f9fcc24.tar.gz
frameworks_base-8331f72078051cdf5a26230ee819f7ef7f9fcc24.tar.bz2
remove the gl{Vertex|Color|TexCoord|Normal}PointerBounds() "extension" fro eglext.h
Diffstat (limited to 'core/jni/com_google_android_gles_jni_GLImpl.cpp')
-rw-r--r--core/jni/com_google_android_gles_jni_GLImpl.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/jni/com_google_android_gles_jni_GLImpl.cpp b/core/jni/com_google_android_gles_jni_GLImpl.cpp
index 6f2a438..11822e0 100644
--- a/core/jni/com_google_android_gles_jni_GLImpl.cpp
+++ b/core/jni/com_google_android_gles_jni_GLImpl.cpp
@@ -24,6 +24,19 @@
#include <GLES/gl.h>
#include <GLES/glext.h>
+/* special calls implemented in Android's GLES wrapper used to more
+ * efficiently bound-check passed arrays */
+extern "C" {
+GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
+ const GLvoid *ptr, GLsizei count);
+GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
+ const GLvoid *pointer, GLsizei count);
+GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type,
+ GLsizei stride, const GLvoid *pointer, GLsizei count);
+GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type,
+ GLsizei stride, const GLvoid *pointer, GLsizei count);
+}
+
static int initialized = 0;
static jclass nioAccessClass;