renderer: change all frame_signal emission to pass previous_damage
authorStefan Agner <stefan@agner.ch>
Mon, 9 Dec 2019 12:26:57 +0000 (13:26 +0100)
committerStefan Agner <stefan@agner.ch>
Mon, 9 Dec 2019 12:32:07 +0000 (13:32 +0100)
Commit adaf8c7410da ("renderer: change frame_signal emission to pass
previous_damage as data argument") missed updating all frame_signal
emissions. Later commit 2619bfe420 ("move frame_signal emission to
weston_output_repaint()") fixed this deficency along with moving the
location of the emission. Due to an issue of the location change, this
commit had to be reverted again.

This makes sure that the pixman as well as the GL renderer now also
emits the damage region instead of the Weston output.

Fixes: adaf8c7410da ("renderer: change frame_signal emission to pass previous_damage as data argument")
Signed-off-by: Stefan Agner <stefan@agner.ch>
libweston/pixman-renderer.c
libweston/renderer-gl/gl-renderer.c

index 2d70aa4764cdd38200475b2ff089eccd916cee24..cae89741183c710014fdb82f96b0af276caa8f51 100644 (file)
@@ -579,7 +579,7 @@ pixman_renderer_repaint_output(struct weston_output *output,
        }
        pixman_region32_fini(&hw_damage);
 
-       wl_signal_emit(&output->frame_signal, output);
+       wl_signal_emit(&output->frame_signal, output_damage);
 
        /* Actual flip should be done by caller */
 }
index 25e212b9ceef4392d2d434dfabe3ae58a839a553..6c4355076aa2f13614b9f4c818e0ec9819bad330 100644 (file)
@@ -1473,7 +1473,7 @@ gl_renderer_repaint_output(struct weston_output *output,
 
        draw_output_borders(output, border_status);
 
-       wl_signal_emit(&output->frame_signal, output);
+       wl_signal_emit(&output->frame_signal, output_damage);
 
        go->end_render_sync = create_render_sync(gr);