backend-rdp: Use weston_output_finish_frame_from_timer()
Replace the finish frame handler logic with a call to the weston_output_finish_frame_from_timer() helper function. This makes finish_frame_handler() return more exact timestamps calculated from the previous frame time if the timer callback was not delayed too much. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
98cd2e9f97
commit
8888777b26
@ -308,10 +308,8 @@ static int
|
|||||||
finish_frame_handler(void *data)
|
finish_frame_handler(void *data)
|
||||||
{
|
{
|
||||||
struct rdp_output *output = data;
|
struct rdp_output *output = data;
|
||||||
struct timespec ts;
|
|
||||||
|
|
||||||
weston_compositor_read_presentation_clock(output->base.compositor, &ts);
|
weston_output_finish_frame_from_timer(&output->base);
|
||||||
weston_output_finish_frame(&output->base, &ts, 0);
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user