mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
compositor: introduce surface state squashing
State squashing refers to the action of combining the state with the one right before it; the older state becomes a "sum" of two states, and the newer state becomes empty. This allows to free up memory and release client resources as soon as possible.
This commit is contained in:
parent
81f35f6d98
commit
c6b067779b
2 changed files with 407 additions and 433 deletions
|
|
@ -165,6 +165,7 @@ struct wlr_surface {
|
|||
enum wl_output_transform transform;
|
||||
int width, height;
|
||||
int buffer_width, buffer_height;
|
||||
struct wlr_fbox viewport_src;
|
||||
} previous;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue