mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output: add damage tracking via buffer age
This commit is contained in:
parent
78c13ead16
commit
0365b587f0
21 changed files with 163 additions and 81 deletions
|
|
@ -11,8 +11,12 @@ struct wlr_egl {
|
|||
EGLConfig config;
|
||||
EGLContext context;
|
||||
|
||||
const char *egl_exts;
|
||||
const char *gl_exts;
|
||||
const char *egl_exts_str;
|
||||
const char *gl_exts_str;
|
||||
|
||||
struct {
|
||||
bool buffer_age;
|
||||
} egl_exts;
|
||||
|
||||
struct wl_display *wl_display;
|
||||
};
|
||||
|
|
@ -65,4 +69,10 @@ bool wlr_egl_destroy_image(struct wlr_egl *egl, EGLImageKHR image);
|
|||
*/
|
||||
const char *egl_error(void);
|
||||
|
||||
bool wlr_egl_make_current(struct wlr_egl *egl, EGLSurface surface,
|
||||
int *buffer_age);
|
||||
|
||||
// TODO: remove
|
||||
int wlr_egl_get_buffer_age(struct wlr_egl *egl, EGLSurface surface);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue