diff options
author | Chad Versace <[email protected]> | 2014-01-28 17:03:03 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:36:04 -0700 |
commit | 3fdfbd2572ea42f3ef71db032b31cc87ea274e11 (patch) | |
tree | 43872ded41051fe8ca2ca623c950eb00e64e33b8 /src/egl/drivers/dri2/egl_dri2.h | |
parent | 958dd80c40dc87545b49d09cb2e4415a30746004 (diff) |
egl/dri2: Dispatch API.QueryBufferAge by display, not driver
Add dri2_egl_display_vtbl::query_buffer_age, set it for each
platform, and let egl_dri2 dispatch API.QueryBufferAge 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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 389c564a887..0d6dd419496 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -110,9 +110,12 @@ struct dri2_egl_display_vtbl { EGLBoolean (*swap_buffers)(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf); - EGLBoolean (*swap_buffers_with_damage)(_EGLDriver *drv, _EGLDisplay *dpy, - _EGLSurface *surface, - const EGLint *rects, EGLint n_rects); + EGLBoolean (*swap_buffers_with_damage)(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLSurface *surface, + const EGLint *rects, EGLint n_rects); + + EGLint (*query_buffer_age)(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLSurface *surf); }; struct dri2_egl_display |