egl: Remove unused _EGL_SKIP_HANDLE_CHECK.
It was added to skip checking EGLDisplay, EGLSurface, and etc. It is never defined and the spec does not allow the checks to be skipped. Remove it for good.
This commit is contained in:
parent
58a72cd65e
commit
7d1237bc71
|
@ -76,9 +76,6 @@ _eglAddConfig(_EGLDisplay *dpy, _EGLConfig *conf)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef _EGL_SKIP_HANDLE_CHECK
|
|
||||||
|
|
||||||
|
|
||||||
EGLBoolean
|
EGLBoolean
|
||||||
_eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy)
|
_eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy)
|
||||||
{
|
{
|
||||||
|
@ -96,9 +93,6 @@ _eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* _EGL_SKIP_HANDLE_CHECK */
|
|
||||||
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* types */
|
/* types */
|
||||||
ATTRIB_TYPE_INTEGER,
|
ATTRIB_TYPE_INTEGER,
|
||||||
|
|
|
@ -92,27 +92,10 @@ PUBLIC EGLConfig
|
||||||
_eglAddConfig(_EGLDisplay *dpy, _EGLConfig *conf);
|
_eglAddConfig(_EGLDisplay *dpy, _EGLConfig *conf);
|
||||||
|
|
||||||
|
|
||||||
#ifndef _EGL_SKIP_HANDLE_CHECK
|
|
||||||
|
|
||||||
|
|
||||||
extern EGLBoolean
|
extern EGLBoolean
|
||||||
_eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy);
|
_eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy);
|
||||||
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
|
|
||||||
static INLINE EGLBoolean
|
|
||||||
_eglCheckConfigHandle(EGLConfig config, _EGLDisplay *dpy)
|
|
||||||
{
|
|
||||||
_EGLConfig *conf = (_EGLConfig *) config;
|
|
||||||
return (dpy && conf && conf->Display == dpy);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* _EGL_SKIP_HANDLE_CHECK */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup a handle to find the linked config.
|
* Lookup a handle to find the linked config.
|
||||||
* Return NULL if the handle has no corresponding linked config.
|
* Return NULL if the handle has no corresponding linked config.
|
||||||
|
|
|
@ -134,9 +134,6 @@ _eglCleanupDisplay(_EGLDisplay *disp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef _EGL_SKIP_HANDLE_CHECK
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return EGL_TRUE if the given handle is a valid handle to a display.
|
* Return EGL_TRUE if the given handle is a valid handle to a display.
|
||||||
*/
|
*/
|
||||||
|
@ -181,9 +178,6 @@ _eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* !_EGL_SKIP_HANDLE_CHECK */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Link a resource to a display.
|
* Link a resource to a display.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -101,9 +101,6 @@ PUBLIC void
|
||||||
_eglCleanupDisplay(_EGLDisplay *disp);
|
_eglCleanupDisplay(_EGLDisplay *disp);
|
||||||
|
|
||||||
|
|
||||||
#ifndef _EGL_SKIP_HANDLE_CHECK
|
|
||||||
|
|
||||||
|
|
||||||
extern EGLBoolean
|
extern EGLBoolean
|
||||||
_eglCheckDisplayHandle(EGLDisplay dpy);
|
_eglCheckDisplayHandle(EGLDisplay dpy);
|
||||||
|
|
||||||
|
@ -112,27 +109,6 @@ PUBLIC EGLBoolean
|
||||||
_eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy);
|
_eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy);
|
||||||
|
|
||||||
|
|
||||||
#else /* !_EGL_SKIP_HANDLE_CHECK */
|
|
||||||
|
|
||||||
/* Only do a quick check. This is NOT standard compliant. */
|
|
||||||
|
|
||||||
static INLINE EGLBoolean
|
|
||||||
_eglCheckDisplayHandle(EGLDisplay dpy)
|
|
||||||
{
|
|
||||||
return ((_EGLDisplay *) dpy != NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static INLINE EGLBoolean
|
|
||||||
_eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy);
|
|
||||||
{
|
|
||||||
return (((_EGLResource *) res)->Display == dpy);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* _EGL_SKIP_HANDLE_CHECK */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup a handle to find the linked display.
|
* Lookup a handle to find the linked display.
|
||||||
* Return NULL if the handle has no corresponding linked display.
|
* Return NULL if the handle has no corresponding linked display.
|
||||||
|
|
Loading…
Reference in New Issue