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>
dev
Leandro Ribeiro 5 years ago
parent 9e7e7fac37
commit 2619bfe420
  1. 1
      libweston/compositor.c
  2. 1
      libweston/pixman-renderer.c
  3. 1
      libweston/renderer-gl/gl-renderer.c

@ -2723,6 +2723,7 @@ weston_output_repaint(struct weston_output *output, void *repaint_data)
weston_output_update_matrix(output); weston_output_update_matrix(output);
r = output->repaint(output, &output_damage, repaint_data); r = output->repaint(output, &output_damage, repaint_data);
wl_signal_emit(&output->frame_signal, output);
pixman_region32_fini(&output_damage); pixman_region32_fini(&output_damage);

@ -580,7 +580,6 @@ pixman_renderer_repaint_output(struct weston_output *output,
pixman_region32_fini(&hw_damage); pixman_region32_fini(&hw_damage);
pixman_region32_copy(&output->previous_damage, output_damage); pixman_region32_copy(&output->previous_damage, output_damage);
wl_signal_emit(&output->frame_signal, output);
/* Actual flip should be done by caller */ /* 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); draw_output_borders(output, border_status);
pixman_region32_copy(&output->previous_damage, output_damage); pixman_region32_copy(&output->previous_damage, output_damage);
wl_signal_emit(&output->frame_signal, output);
go->end_render_sync = create_render_sync(gr); go->end_render_sync = create_render_sync(gr);

Loading…
Cancel
Save