summaryrefslogtreecommitdiff
path: root/opengl/libs/hooks.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-04-10 14:24:30 -0700
committer Mathias Agopian <mathias@google.com> 2009-04-10 14:24:30 -0700
commit076b1cc3a9b90aa5b381a1ed268ca0b548444c9b (patch)
treeb87f7863623b37fa9a6cc4ef48934aab46f79986 /opengl/libs/hooks.h
parent4ec21527096d0dcaa99634e6058aca3a415461af (diff)
Integrate from //sandbox/mathias/donut/...@145728
SurfaceFlinger rework for new EGL driver model support.
Diffstat (limited to 'opengl/libs/hooks.h')
-rw-r--r--opengl/libs/hooks.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/opengl/libs/hooks.h b/opengl/libs/hooks.h
index 63fb017675..392724fe5e 100644
--- a/opengl/libs/hooks.h
+++ b/opengl/libs/hooks.h
@@ -22,9 +22,10 @@
#include <errno.h>
#include <EGL/egl.h>
+#include <EGL/eglext.h>
#include <GLES/gl.h>
+#include <GLES/glext.h>
-#define GL_LOGGER 0
#if !defined(__arm__)
#define USE_SLOW_BINDING 1
#else
@@ -35,7 +36,7 @@
#define MAX_NUMBER_OF_GL_EXTENSIONS 32
-#if defined(HAVE_ANDROID_OS) && !USE_SLOW_BINDING && !GL_LOGGER && __OPTIMIZE__
+#if defined(HAVE_ANDROID_OS) && !USE_SLOW_BINDING && __OPTIMIZE__
#define USE_FAST_TLS_KEY 1
#else
#define USE_FAST_TLS_KEY 0
@@ -55,7 +56,10 @@ const unsigned int NUM_DISPLAYS = 1;
enum {
IMPL_HARDWARE = 0,
IMPL_SOFTWARE,
- IMPL_CONTEXT_LOST,
+
+ IMPL_NUM_DRIVERS_IMPLEMENTATIONS,
+
+ IMPL_CONTEXT_LOST = IMPL_NUM_DRIVERS_IMPLEMENTATIONS,
IMPL_NO_CONTEXT,
IMPL_NUM_IMPLEMENTATIONS