}
static EGLBoolean
-dri2_swap_interval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
- EGLint interval)
+dri2_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval)
{
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
if (!dri2_dpy->vtbl->swap_interval)
return EGL_TRUE;
- return dri2_dpy->vtbl->swap_interval(drv, disp, surf, interval);
+ return dri2_dpy->vtbl->swap_interval(disp, surf, interval);
}
/**
EGLBoolean (*destroy_surface)(_EGLDisplay *disp, _EGLSurface *surface);
/* optional */
- EGLBoolean (*swap_interval)(const _EGLDriver *drv, _EGLDisplay *disp,
- _EGLSurface *surf, EGLint interval);
+ EGLBoolean (*swap_interval)(_EGLDisplay *disp, _EGLSurface *surf,
+ EGLint interval);
/* mandatory */
_EGLImage* (*create_image)(const _EGLDriver *drv, _EGLDisplay *disp,
}
static EGLBoolean
-droid_swap_interval(const _EGLDriver *drv, _EGLDisplay *disp,
- _EGLSurface *surf, EGLint interval)
+droid_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval)
{
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf);
struct ANativeWindow *window = dri2_surf->window;
#endif
static EGLBoolean
-dri2_x11_swap_interval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
- EGLint interval);
+dri2_x11_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval);
uint32_t
dri2_format_for_depth(struct dri2_egl_display *dri2_dpy, uint32_t depth);
surf->SwapInterval = 1;
/* Override that with a driconf-set value. */
- dri2_x11_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
+ dri2_x11_swap_interval(disp, surf, dri2_dpy->default_swap_interval);
}
return surf;
}
static EGLBoolean
-dri2_x11_swap_interval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
- EGLint interval)
+dri2_x11_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval)
{
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(surf);
}
static EGLBoolean
-dri3_set_swap_interval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
- EGLint interval)
+dri3_set_swap_interval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval)
{
struct dri3_egl_surface *dri3_surf = dri3_egl_surface(surf);
surf = dri3_create_surface(disp, EGL_WINDOW_BIT, conf,
native_window, attrib_list);
if (surf != NULL)
- dri3_set_swap_interval(disp->Driver, disp, surf, dri2_dpy->default_swap_interval);
+ dri3_set_swap_interval(disp, surf, dri2_dpy->default_swap_interval);
return surf;
}
if (surf->SwapInterval != interval) {
if (drv->SwapInterval)
- ret = drv->SwapInterval(drv, disp, surf, interval);
+ ret = drv->SwapInterval(disp, surf, interval);
else
- ret = _eglSwapInterval(drv, disp, surf, interval);
+ ret = _eglSwapInterval(disp, surf, interval);
}
else {
ret = EGL_TRUE;
EGLint buffer);
EGLBoolean (*ReleaseTexImage)(_EGLDisplay *disp, _EGLSurface *surface,
EGLint buffer);
- EGLBoolean (*SwapInterval)(const _EGLDriver *drv, _EGLDisplay *disp,
- _EGLSurface *surf, EGLint interval);
+ EGLBoolean (*SwapInterval)(_EGLDisplay *disp, _EGLSurface *surf,
+ EGLint interval);
EGLBoolean (*SwapBuffers)(const _EGLDriver *drv, _EGLDisplay *disp,
_EGLSurface *draw);
EGLBoolean (*CopyBuffers)(const _EGLDriver *drv, _EGLDisplay *disp,
EGLBoolean
-_eglSwapInterval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf,
- EGLint interval)
+_eglSwapInterval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval)
{
return EGL_TRUE;
}
extern EGLBoolean
-_eglSwapInterval(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, EGLint interval);
+_eglSwapInterval(_EGLDisplay *disp, _EGLSurface *surf, EGLint interval);
extern EGLBoolean
_eglSurfaceHasMutableRenderBuffer(_EGLSurface *surf);