mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-22 00:48:12 +02:00
surface: Move presentation-feedback discard to commit
There's no reason for it to belong in attach, really. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
f6d81e42d4
commit
4863ee5ef1
1 changed files with 4 additions and 1 deletions
|
|
@ -2679,7 +2679,6 @@ weston_surface_attach(struct weston_surface *surface,
|
|||
surface->compositor->renderer->attach(surface, buffer);
|
||||
|
||||
weston_surface_calculate_size_from_buffer(surface);
|
||||
weston_presentation_feedback_discard_list(&surface->feedback_list);
|
||||
|
||||
if (buffer)
|
||||
surface->is_opaque = pixel_format_is_opaque(buffer->pixel_format);
|
||||
|
|
@ -4038,6 +4037,10 @@ weston_surface_commit_state(struct weston_surface *surface,
|
|||
/* zwp_surface_synchronization_v1.get_release */
|
||||
weston_buffer_release_move(&surface->buffer_release_ref,
|
||||
&state->buffer_release_ref);
|
||||
|
||||
/* wp_presentation.feedback */
|
||||
weston_presentation_feedback_discard_list(&surface->feedback_list);
|
||||
|
||||
weston_surface_attach(surface, state->buffer);
|
||||
}
|
||||
weston_surface_state_set_buffer(state, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue