}
static EGLint
-dri2_query_buffer_age(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf)
+dri2_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
{
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
if (!dri2_dpy->vtbl->query_buffer_age)
return 0;
- return dri2_dpy->vtbl->query_buffer_age(drv, disp, surf);
+ return dri2_dpy->vtbl->query_buffer_age(disp, surf);
}
static EGLBoolean
void *native_pixmap_target);
/* optional */
- EGLint (*query_buffer_age)(const _EGLDriver *drv, _EGLDisplay *disp,
- _EGLSurface *surf);
+ EGLint (*query_buffer_age)(_EGLDisplay *disp, _EGLSurface *surf);
/* optional */
EGLBoolean (*query_surface)(_EGLDisplay *disp, _EGLSurface *surf,
}
static EGLint
-droid_query_buffer_age(const _EGLDriver *drv,
- _EGLDisplay *disp, _EGLSurface *surface)
+droid_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
{
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface);
}
static EGLint
-dri2_drm_query_buffer_age(const _EGLDriver *drv,
- _EGLDisplay *disp, _EGLSurface *surface)
+dri2_drm_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
{
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface);
}
static EGLint
-dri2_wl_query_buffer_age(const _EGLDriver *drv,
- _EGLDisplay *disp, _EGLSurface *surface)
+dri2_wl_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surface)
{
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surface);
}
static int
-dri3_query_buffer_age(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf)
+dri3_query_buffer_age(_EGLDisplay *disp, _EGLSurface *surf)
{
struct dri3_egl_surface *dri3_surf = dri3_egl_surface(surf);
EGLBoolean (*PostSubBufferNV)(_EGLDisplay *disp, _EGLSurface *surface,
EGLint x, EGLint y, EGLint width, EGLint height);
- EGLint (*QueryBufferAge)(const _EGLDriver *drv,
- _EGLDisplay *disp, _EGLSurface *surface);
+ EGLint (*QueryBufferAge)(_EGLDisplay *disp, _EGLSurface *surface);
EGLBoolean (*GetSyncValuesCHROMIUM)(_EGLDisplay *disp, _EGLSurface *surface,
EGLuint64KHR *ust, EGLuint64KHR *msc,
EGLuint64KHR *sbc);
return _eglError(EGL_BAD_ATTRIBUTE, "eglQuerySurface");
_EGLContext *ctx = _eglGetCurrentContext();
- const _EGLDriver *drv = disp->Driver;
- EGLint result = drv->QueryBufferAge(drv, disp, surface);
+ EGLint result = disp->Driver->QueryBufferAge(disp, surface);
/* error happened */
if (result < 0)
return EGL_FALSE;