summaryrefslogtreecommitdiff
path: root/src/egl/main/egldisplay.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-08-10 14:16:32 +0800
committerBrian Paul <brianp@vmware.com>2009-08-11 22:14:35 -0600
commit621801abd287238f9a3209554bc84fec5d2e9ccd (patch)
treed20e86ac2a20f4513ffafa5dbc406107454ffd3b /src/egl/main/egldisplay.h
parent56d2119280a202b7714821bc324b07df4b36d559 (diff)
egl: Make display and surface hash tables local.
Move display and surface hash tables to egldisplay.c, and have them initialized on demand. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/egl/main/egldisplay.h')
-rw-r--r--src/egl/main/egldisplay.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
index 2ef5db8a18..70c59ef5e4 100644
--- a/src/egl/main/egldisplay.h
+++ b/src/egl/main/egldisplay.h
@@ -6,6 +6,7 @@
#endif
#include "egltypedefs.h"
+#include "eglhash.h"
struct _egl_display
@@ -26,6 +27,10 @@ struct _egl_display
/* lists of linked contexts and surface */
_EGLContext *ContextList;
_EGLSurface *SurfaceList;
+
+ /* hash table to map surfaces to handles */
+ _EGLHashtable *SurfaceHash;
+
#ifdef _EGL_PLATFORM_X
Display *Xdpy;
#endif