OSDN Git Service

egl: Add funtions to link contexts and surfaces to displays.
authorChia-I Wu <olvaffe@gmail.com>
Fri, 17 Jul 2009 17:48:27 +0000 (11:48 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Jul 2009 17:48:27 +0000 (11:48 -0600)
commit18457cb263e3e062e12314e7b3d5c81a7f2ba048
tree179cde7595a4925111e78515be68005566aae66d
parent21b635ffa8b59049a95d50d4c7b7a8ff6413b730
egl: Add funtions to link contexts and surfaces to displays.

EGL contexts and surfaces are resources of displays.  They should be
managed by displays.  This commit adds a bunch of functions to
egldisplay.c to help establish the links between contexts/surfaces and
displays.  How links are established is considered opaque outside
display.  Functions like _eglGetSurfaceHandle or _eglLookupSurface are
therefore moved to egldisplay.c, with some small modifications.

The idea is also extended to display.  That is, displays need to link to
themselves to be looked up.

This commit only adds the functions.  A commit to use them should
follow.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/eglapi.c
src/egl/main/eglcontext.c
src/egl/main/eglcontext.h
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h
src/egl/main/eglsurface.c
src/egl/main/eglsurface.h