diff options
author | Chia-I Wu <[email protected]> | 2009-08-10 14:16:32 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-11 22:14:35 -0600 |
commit | 621801abd287238f9a3209554bc84fec5d2e9ccd (patch) | |
tree | d20e86ac2a20f4513ffafa5dbc406107454ffd3b /src/egl/main/egldisplay.h | |
parent | 56d2119280a202b7714821bc324b07df4b36d559 (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 <[email protected]>
Diffstat (limited to 'src/egl/main/egldisplay.h')
-rw-r--r-- | src/egl/main/egldisplay.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index 2ef5db8a184..70c59ef5e46 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 |