surface: drop wlr_surface_state.buffer_resource

Instead, use wlr_surface_state.buffer only.
This commit is contained in:
Simon Ser 2021-08-11 17:34:34 +02:00 committed by Simon Zeni
parent 0978a702d7
commit ba0525c5c0
5 changed files with 16 additions and 50 deletions

View file

@ -36,7 +36,6 @@ struct wlr_surface_state {
uint32_t seq;
struct wlr_buffer *buffer;
struct wl_resource *buffer_resource;
int32_t dx, dy; // relative to previous position
pixman_region32_t surface_damage, buffer_damage; // clipped to bounds
pixman_region32_t opaque, input;
@ -65,8 +64,6 @@ struct wlr_surface_state {
int dst_width, dst_height; // in surface-local coordinates
} viewport;
struct wl_listener buffer_destroy;
// 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