mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-08 15:20:26 +01:00
backend-headless: Nuke band-aid
With commit a1f8c49d5b 'compositor: repaint backends separately'
we will be repainting outputs independently so there's no need to keep
this band-aid on.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
52354f159f
commit
e271b2ed99
1 changed files with 1 additions and 11 deletions
|
|
@ -137,18 +137,8 @@ static int
|
|||
finish_frame_handler(void *data)
|
||||
{
|
||||
struct headless_output *output = data;
|
||||
struct timespec ts;
|
||||
|
||||
weston_compositor_read_presentation_clock(output->base.compositor, &ts);
|
||||
|
||||
/* If another output's repaint failed before this repaint finished,
|
||||
* this repaint will have been cancelled by now. In this case we cannot
|
||||
* go through finish_frame, because the repaint machinery does not
|
||||
* expect this. */
|
||||
if (output->base.repaint_status != REPAINT_AWAITING_COMPLETION)
|
||||
return -1;
|
||||
|
||||
weston_output_finish_frame(&output->base, &ts, 0);
|
||||
weston_output_finish_frame_from_timer(&output->base);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue