scene: add wlr_scene_commit_output

This function performs an output commit. Since it's higher level than
wlr_scene_render, it can take care of damage tracking and output layers.
This commit is contained in:
Simon Ser 2020-05-06 17:24:18 +02:00
parent 33aaa24b6b
commit 68644f26bc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 26 additions and 0 deletions

View file

@ -103,6 +103,11 @@ struct wlr_scene *wlr_scene_create(void);
*/
void wlr_scene_render(struct wlr_scene *scene, struct wlr_output *output,
int lx, int ly, pixman_region32_t *damage);
/**
* Perform an output commit.
*/
bool wlr_scene_commit_output(struct wlr_scene *scene, struct wlr_output *output,
int lx, int ly);
/**
* Add a node displaying a surface (and its sub-surfaces) to the scene-graph.