diff options
author | 2009-05-28 17:39:03 -0700 | |
---|---|---|
committer | 2009-05-28 20:31:40 -0700 | |
commit | 9d17c057bdb9da5fa991a2c3efebe453106ca0a7 (patch) | |
tree | 13c7d86fc365a810213910f2ccf62967db55831b /opengl/libs/hooks.h | |
parent | e9d7445acea438b731273ac91114426bf1e5056c (diff) |
implement a real loader for EGL drivers
we now look for a config file in /system/lib/egl/egl.cfg that describes the association of a display to a driver.
these drivers are named: /system/lib/egl/lib{[EGL|GLESv1_CM|GLESv2] | GLES}_$TAG.so
Diffstat (limited to 'opengl/libs/hooks.h')
-rw-r--r-- | opengl/libs/hooks.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/opengl/libs/hooks.h b/opengl/libs/hooks.h index 1257785c03d5..37292eef07ec 100644 --- a/opengl/libs/hooks.h +++ b/opengl/libs/hooks.h @@ -21,12 +21,12 @@ #include <string.h> #include <errno.h> +#include <pthread.h> + #include <EGL/egl.h> #include <EGL/eglext.h> - #include <GLES/gl.h> #include <GLES/glext.h> - #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> @@ -102,6 +102,13 @@ struct gl_hooks_t { extern gl_hooks_t gHooks[IMPL_NUM_IMPLEMENTATIONS]; extern pthread_key_t gGLWrapperKey; +extern "C" void gl_unimplemented(); + +extern char const * const gl_names[]; +extern char const * const gl2_names[]; +extern char const * const egl_names[]; + +// ---------------------------------------------------------------------------- #if USE_FAST_TLS_KEY |