mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-14 05:34:28 -04:00
backend/drm: drop wlr_drm_layer.pending_{width,height}
No need to store this info in struct wlr_drm_layer. We can just extract the size when we need it.
This commit is contained in:
parent
7215bd1e0f
commit
8338d17d7e
3 changed files with 6 additions and 8 deletions
|
|
@ -564,11 +564,8 @@ static bool drm_connector_set_pending_layer_fbs(struct wlr_drm_connector *conn,
|
|||
}
|
||||
|
||||
if (layer_state->buffer != NULL) {
|
||||
layer->pending_width = layer_state->buffer->width;
|
||||
layer->pending_height = layer_state->buffer->height;
|
||||
drm_fb_import(&layer->pending_fb, drm, layer_state->buffer, NULL);
|
||||
} else {
|
||||
layer->pending_width = layer->pending_height = 0;
|
||||
drm_fb_clear(&layer->pending_fb);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue