diff options
author | Chia-I Wu <[email protected]> | 2009-07-17 11:48:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-07-17 11:48:27 -0600 |
commit | 18457cb263e3e062e12314e7b3d5c81a7f2ba048 (patch) | |
tree | 179cde7595a4925111e78515be68005566aae66d /src/egl/main/eglcontext.c | |
parent | 21b635ffa8b59049a95d50d4c7b7a8ff6413b730 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r-- | src/egl/main/eglcontext.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 81e69e946b3..edcc6a986fe 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -84,31 +84,6 @@ _eglRemoveContext(_EGLContext *ctx) /** - * Return the public handle for the given private context ptr. - * This is the inverse of _eglLookupContext(). - */ -EGLContext -_eglGetContextHandle(_EGLContext *ctx) -{ - /* just a cast! */ - return (EGLContext) ctx; -} - - -/** - * Return the _EGLContext object that corresponds to the given - * EGLContext handle. - * This is the inverse of _eglGetContextHandle(). - */ -_EGLContext * -_eglLookupContext(EGLContext ctx) -{ - /* just a cast since EGLContext is just a void ptr */ - return (_EGLContext *) ctx; -} - - -/** * Just a placeholder/demo function. Real driver will never use this! */ EGLContext |