diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-10 09:45:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 09:45:18 -0500 |
commit | 07856580c446607fa55888db8ae75491e0447c20 (patch) | |
tree | fe1ab648a792adfd9d66f3975ff093f2ed5a4844 /include/wlr/render/egl.h | |
parent | 039f112c31eea17e45c121db9b470fa36bbf9af9 (diff) | |
parent | bf6d24540000339029a30715f1f72b5b95a45018 (diff) |
Merge pull request #619 from emersion/swap-with-damage
Swap buffers with damage
Diffstat (limited to 'include/wlr/render/egl.h')
-rw-r--r-- | include/wlr/render/egl.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <stdbool.h> #include <EGL/egl.h> #include <EGL/eglext.h> -#include <stdbool.h> +#include <pixman.h> #include <wayland-server.h> 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 |