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:
@@ -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);
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user