egl: Overhaul driver API.

The motivation is so that drivers do not need to look up and check for
bad display, context, and etc.  It also becomes unnecessary for drivers
to call the link functions.

This commit makes eglapi.[ch] do the lookup and check.  As a result, the
driver API is overhauled, and almost all sources and drivers need
update.  The updates are mainly find and replace with human brains.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
Chia-I Wu
2009-08-11 17:09:39 +08:00
committed by Brian Paul
parent 521dea21d4
commit 2f2cf461c5
25 changed files with 894 additions and 880 deletions

View File

@@ -72,7 +72,7 @@ _eglFindDisplay(NativeDisplayType nativeDisplay);
extern void
_eglReleaseDisplayResources(_EGLDriver *drv, EGLDisplay dpy);
_eglReleaseDisplayResources(_EGLDriver *drv, _EGLDisplay *dpy);
extern void
@@ -92,7 +92,7 @@ _eglGetContextHandle(_EGLContext *ctx);
extern _EGLContext *
_eglLookupContext(EGLContext ctx);
_eglLookupContext(EGLContext ctx, _EGLDisplay *dpy);
/**
@@ -117,7 +117,7 @@ _eglGetSurfaceHandle(_EGLSurface *);
extern _EGLSurface *
_eglLookupSurface(EGLSurface surf);
_eglLookupSurface(EGLSurface surf, _EGLDisplay *dpy);
/**