diff options
author | Robert Bragg <[email protected]> | 2013-04-25 13:41:42 +0100 |
---|---|---|
committer | Robert Bragg <[email protected]> | 2013-05-07 17:07:45 +0100 |
commit | 6425b14515e3124d6d1fe2d39fa192389aab9f85 (patch) | |
tree | 81990d28a3ef1d692964f7670c4a196a192da3a9 /src/egl/main/eglapi.h | |
parent | 95dda0d64931edaa4dc3f219f43b21ad69affca3 (diff) |
egl: Add extension infrastructure for EGL_EXT_swap_buffers_with_damage
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.h')
-rw-r--r-- | src/egl/main/eglapi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index 85b8f1a8db1..ee382d00e4a 100644 --- a/src/egl/main/eglapi.h +++ b/src/egl/main/eglapi.h @@ -131,6 +131,9 @@ typedef EGLBoolean (*PostSubBufferNV_t)(_EGLDriver *drv, _EGLDisplay *disp, _EGL typedef EGLint (*QueryBufferAge_t)(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface); +#ifdef EGL_EXT_swap_buffers_with_damage +typedef EGLBoolean (*SwapBuffersWithDamageEXT_t) (_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surface, const EGLint *rects, EGLint n_rects); +#endif /** * The API dispatcher jumps through these functions @@ -207,6 +210,10 @@ struct _egl_api QueryWaylandBufferWL_t QueryWaylandBufferWL; #endif +#ifdef EGL_EXT_swap_buffers_with_damage + SwapBuffersWithDamageEXT_t SwapBuffersWithDamageEXT; +#endif /* EGL_EXT_swap_buffers_with_damage */ + PostSubBufferNV_t PostSubBufferNV; QueryBufferAge_t QueryBufferAge; |