mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
rootston: refactor rendering
This implements rootston surface iterators to ease rendering, sending frame/presentation events and accumulating damage.
This commit is contained in:
parent
8efeca528f
commit
62fd03a7be
8 changed files with 339 additions and 349 deletions
|
|
@ -559,6 +559,15 @@ void view_damage_whole(struct roots_view *view) {
|
|||
}
|
||||
}
|
||||
|
||||
void view_for_each_surface(struct roots_view *view,
|
||||
wlr_surface_iterator_func_t iterator, void *user_data) {
|
||||
if (view->impl->for_each_surface) {
|
||||
view->impl->for_each_surface(view, iterator, user_data);
|
||||
} else if (view->wlr_surface) {
|
||||
wlr_surface_for_each_surface(view->wlr_surface, iterator, user_data);
|
||||
}
|
||||
}
|
||||
|
||||
void view_update_position(struct roots_view *view, int x, int y) {
|
||||
if (view->box.x == x && view->box.y == y) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue