diff options
author | Chad Versace <[email protected]> | 2014-01-28 16:21:21 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:36:03 -0700 |
commit | ad173bcfdbeaa52d6a024cd7ef6c068c5a999ba2 (patch) | |
tree | 6a3e6f3fcdff841c5171764840e6323a48fc7056 /src/egl/drivers/dri2/egl_dri2.h | |
parent | 8b9298af0a3bce1360cc2c020b31470b37b660fe (diff) |
egl/dri2: Dispatch eglSwapBuffers by display, not driver
Add dri2_egl_display_vtbl::swap_buffers, set it for each platform, and
let egl_dri2 dispatch eglSwapBuffers to that.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 9f785c1c950..e4555621f6e 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -89,6 +89,9 @@ struct dri2_egl_display_vtbl { EGLBoolean (*swap_interval)(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval); + + EGLBoolean (*swap_buffers)(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLSurface *surf); }; struct dri2_egl_display |