summaryrefslogtreecommitdiffstats
path: root/opengl/libs/hooks.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-17 18:07:06 -0700
committerMathias Agopian <mathias@google.com>2009-08-17 18:07:06 -0700
commitdcebf6f65a890083545a8c191fcdc2522bfd035d (patch)
tree3659d5b1a1ea32cc219445c9e4ebe08a822e48c9 /opengl/libs/hooks.h
parent2b8954809e7de900e2c159c255d5237ae6f0e6f8 (diff)
downloadframeworks_base-dcebf6f65a890083545a8c191fcdc2522bfd035d.zip
frameworks_base-dcebf6f65a890083545a8c191fcdc2522bfd035d.tar.gz
frameworks_base-dcebf6f65a890083545a8c191fcdc2522bfd035d.tar.bz2
fix bug [2021677] egl driver unloaded after eglTerminate() is called
refactored the code so that: - EGL APIs that can be called before or after eglInitialize() will work by loading the drivers first - make eglGetDisplay() a lot more efficient - make sure that EGL drivers are loaded in a thread-safe way - don't unload the drivers upon calling eglTerminate(), they're now never unloaded, since there is no safe way to do it (some thread could be running) - updated our EGL version to 1.4 - return better error codes if errors happen during initialization
Diffstat (limited to 'opengl/libs/hooks.h')
-rw-r--r--opengl/libs/hooks.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/opengl/libs/hooks.h b/opengl/libs/hooks.h
index 37292ee..8c0357e 100644
--- a/opengl/libs/hooks.h
+++ b/opengl/libs/hooks.h
@@ -60,12 +60,8 @@ const unsigned int NUM_DISPLAYS = 1;
enum {
IMPL_HARDWARE = 0,
IMPL_SOFTWARE,
-
IMPL_NUM_DRIVERS_IMPLEMENTATIONS,
-
- IMPL_CONTEXT_LOST = IMPL_NUM_DRIVERS_IMPLEMENTATIONS,
- IMPL_NO_CONTEXT,
-
+ IMPL_NO_CONTEXT = IMPL_NUM_DRIVERS_IMPLEMENTATIONS,
IMPL_NUM_IMPLEMENTATIONS
};