mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-19 06:59:48 -05:00
compositor: replace wlr_surface.cached with states
This commit replaces the list of cached states with a list of all states, including the current and pending ones, and renames cached_state_locks to n_locks. This is a prerequisite for the next commits.
This commit is contained in:
parent
c1a2c09ade
commit
81f35f6d98
2 changed files with 44 additions and 25 deletions
|
|
@ -66,8 +66,8 @@ struct wlr_surface_state {
|
|||
} viewport;
|
||||
|
||||
// Number of locks that prevent this surface state from being committed.
|
||||
size_t cached_state_locks;
|
||||
struct wl_list cached_state_link; // wlr_surface.cached
|
||||
size_t n_locks;
|
||||
struct wl_list link; // wlr_surface.states
|
||||
};
|
||||
|
||||
struct wlr_surface_role {
|
||||
|
|
@ -135,8 +135,6 @@ struct wlr_surface {
|
|||
*/
|
||||
struct wlr_surface_state current, pending;
|
||||
|
||||
struct wl_list cached; // wlr_surface_state.cached_link
|
||||
|
||||
const struct wlr_surface_role *role; // the lifetime-bound role or NULL
|
||||
void *role_data; // role-specific data
|
||||
|
||||
|
|
@ -154,6 +152,12 @@ struct wlr_surface {
|
|||
|
||||
// private state
|
||||
|
||||
/**
|
||||
* The queue of all states the surface has. The current state is always
|
||||
* the first and the pending state is always the last.
|
||||
*/
|
||||
struct wl_list states; // wlr_surface_state.link
|
||||
|
||||
struct wl_listener renderer_destroy;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue