mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
scene: add wlr_scene_output_for_each_surface
This allows compositors to more easily implement sending wl_surface.frame callback done events.
This commit is contained in:
parent
70e8277175
commit
db4c93028d
2 changed files with 46 additions and 0 deletions
|
|
@ -270,6 +270,14 @@ void wlr_scene_output_set_position(struct wlr_scene_output *scene_output,
|
|||
*/
|
||||
bool wlr_scene_output_commit(struct wlr_scene_output *scene_output);
|
||||
|
||||
/**
|
||||
* Call `iterator` on each surface in the scene-graph visible on the output,
|
||||
* with the surface's position in layout coordinates. The function is called
|
||||
* from root to leaves (in rendering order).
|
||||
*/
|
||||
void wlr_scene_output_for_each_surface(struct wlr_scene_output *scene_output,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data);
|
||||
|
||||
/**
|
||||
* Attach an output layout to a scene.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue