mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
scene: add timeline point to wlr_scene_buffer_set_buffer() options
This commit is contained in:
parent
48f0902a36
commit
c7035da5e2
2 changed files with 28 additions and 0 deletions
|
|
@ -191,6 +191,9 @@ struct wlr_scene_buffer {
|
|||
int buffer_width, buffer_height;
|
||||
bool buffer_is_opaque;
|
||||
|
||||
struct wlr_drm_syncobj_timeline *wait_timeline;
|
||||
uint64_t wait_point;
|
||||
|
||||
struct wl_listener buffer_release;
|
||||
struct wl_listener renderer_destroy;
|
||||
};
|
||||
|
|
@ -411,6 +414,10 @@ struct wlr_scene_buffer_set_buffer_options {
|
|||
// The damage region is in buffer-local coordinates. If the region is NULL,
|
||||
// the whole buffer node will be damaged.
|
||||
const pixman_region32_t *damage;
|
||||
|
||||
// Wait for a timeline synchronization point before reading from the buffer.
|
||||
struct wlr_drm_syncobj_timeline *wait_timeline;
|
||||
uint64_t wait_point;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue