From bf6d24540000339029a30715f1f72b5b95a45018 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 9 Feb 2018 22:54:14 +0100 Subject: Swap buffers with damage --- include/wlr/render/egl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 6979fd9b..1facc6b8 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -1,9 +1,10 @@ #ifndef WLR_EGL_H #define WLR_EGL_H +#include #include #include -#include +#include #include struct wlr_egl { @@ -16,6 +17,7 @@ struct wlr_egl { struct { bool buffer_age; + bool swap_buffers_with_damage; } egl_exts; struct wl_display *wl_display; @@ -72,4 +74,7 @@ const char *egl_error(void); bool wlr_egl_make_current(struct wlr_egl *egl, EGLSurface surface, int *buffer_age); +bool wlr_egl_swap_buffers(struct wlr_egl *egl, EGLSurface surface, + pixman_region32_t *damage); + #endif -- cgit v1.2.3