move frame_signal emission to weston_output_repaint()
In order to remove duplication and make the code easier to follow, move frame_signal emission from renderers to weston_output_repaint(). This should have no observable effect. Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
This commit is contained in:
parent
9e7e7fac37
commit
2619bfe420
@ -2723,6 +2723,7 @@ weston_output_repaint(struct weston_output *output, void *repaint_data)
|
||||
weston_output_update_matrix(output);
|
||||
|
||||
r = output->repaint(output, &output_damage, repaint_data);
|
||||
wl_signal_emit(&output->frame_signal, output);
|
||||
|
||||
pixman_region32_fini(&output_damage);
|
||||
|
||||
|
@ -580,7 +580,6 @@ pixman_renderer_repaint_output(struct weston_output *output,
|
||||
pixman_region32_fini(&hw_damage);
|
||||
|
||||
pixman_region32_copy(&output->previous_damage, output_damage);
|
||||
wl_signal_emit(&output->frame_signal, output);
|
||||
|
||||
/* Actual flip should be done by caller */
|
||||
}
|
||||
|
@ -1474,7 +1474,6 @@ gl_renderer_repaint_output(struct weston_output *output,
|
||||
draw_output_borders(output, border_status);
|
||||
|
||||
pixman_region32_copy(&output->previous_damage, output_damage);
|
||||
wl_signal_emit(&output->frame_signal, output);
|
||||
|
||||
go->end_render_sync = create_render_sync(gr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user