summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egldefs.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-02-13 17:09:30 -0800
committerMathias Agopian <mathias@google.com>2012-02-13 18:11:42 -0800
commitada798b7ca7cabc255aa159964b64975e7fdb2df (patch)
treecc33d638efc8dbd4ec15ce715d74a8fb8df1de00 /opengl/libs/EGL/egldefs.h
parenta64366ee40f6ec2df7388cbc7f06e03f9e886bcd (diff)
downloadframeworks_native-ada798b7ca7cabc255aa159964b64975e7fdb2df.zip
frameworks_native-ada798b7ca7cabc255aa159964b64975e7fdb2df.tar.gz
frameworks_native-ada798b7ca7cabc255aa159964b64975e7fdb2df.tar.bz2
remove multiplexing of multiple EGL implementation
from now on, the system can only have one EGL implementation. this means the software and h/w renderer cannot be used at the same time on a device. Of course, the h/w renderer is always prefered; in its absence we default to the software renderer. Change-Id: Ib579f58055dd0ce4c4a99144131efa11c16ca3d3
Diffstat (limited to 'opengl/libs/EGL/egldefs.h')
-rw-r--r--opengl/libs/EGL/egldefs.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/opengl/libs/EGL/egldefs.h b/opengl/libs/EGL/egldefs.h
index ff20957..8b42558 100644
--- a/opengl/libs/EGL/egldefs.h
+++ b/opengl/libs/EGL/egldefs.h
@@ -30,14 +30,8 @@ namespace android {
const unsigned int NUM_DISPLAYS = 1;
enum {
- IMPL_HARDWARE = 0,
- IMPL_SOFTWARE,
- IMPL_NUM_IMPLEMENTATIONS
-};
-
-enum {
GLESv1_INDEX = 0,
- GLESv2_INDEX = 1,
+ GLESv2_INDEX = 1
};
// ----------------------------------------------------------------------------
@@ -54,7 +48,7 @@ struct egl_connection_t
// ----------------------------------------------------------------------------
-extern gl_hooks_t gHooks[2][IMPL_NUM_IMPLEMENTATIONS];
+extern gl_hooks_t gHooks[2];
extern gl_hooks_t gHooksNoContext;
extern pthread_key_t gGLWrapperKey;
extern "C" void gl_unimplemented();
@@ -63,7 +57,7 @@ extern "C" void gl_noop();
extern char const * const gl_names[];
extern char const * const egl_names[];
-extern egl_connection_t gEGLImpl[IMPL_NUM_IMPLEMENTATIONS];
+extern egl_connection_t gEGLImpl;
// ----------------------------------------------------------------------------
}; // namespace android