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>
This commit is contained in:
Chia-I Wu
2009-08-10 14:16:32 +08:00
committed by Brian Paul
parent 56d2119280
commit 621801abd2
4 changed files with 78 additions and 22 deletions

View File

@@ -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