summaryrefslogtreecommitdiff
path: root/src/egl/main/eglglobals.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-08-14 17:47:00 +0800
committerBrian Paul <brianp@vmware.com>2009-08-18 08:49:53 -0600
commit38feefdc4eb4a3c7530b9cddea4c55e9ef39aec8 (patch)
treecb7d042db8ac72c18064981e2a3d17aa048e9f91 /src/egl/main/eglglobals.h
parent7a9f52800932c02f5b425158b4978d0c1d2f4fd3 (diff)
egl: Remove hash table for displays.
The hash table was used to map a display to a handle. It is simpler to cast directly. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/egl/main/eglglobals.h')
-rw-r--r--src/egl/main/eglglobals.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h
index d00d12afd8..58511076d4 100644
--- a/src/egl/main/eglglobals.h
+++ b/src/egl/main/eglglobals.h
@@ -2,7 +2,7 @@
#define EGLGLOBALS_INCLUDED
#include "egltypedefs.h"
-#include "eglhash.h"
+#include "egldisplay.h"
#include "eglcurrent.h"
#include "eglmutex.h"
@@ -13,6 +13,10 @@
struct _egl_global
{
_EGLMutex *Mutex;
+
+ /* the list of all displays */
+ _EGLDisplay *DisplayList;
+
EGLScreenMESA FreeScreenHandle;
/* bitmaks of supported APIs (supported by _some_ driver) */