summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2019-12-09 13:26:57 +0100
committerStefan Agner <stefan@agner.ch>2019-12-09 13:32:07 +0100
commit0bb94476532ebbe95e255a9a736ee0c48866db53 (patch)
tree79c27b999ff51e22744dd0fb377a38d49ab41f9a
parent404a84a03a81362c3528387d7c722e0850149676 (diff)
downloadweston-0bb94476532ebbe95e255a9a736ee0c48866db53.tar.gz
renderer: change all frame_signal emission to pass previous_damage
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>
-rw-r--r--libweston/pixman-renderer.c2
-rw-r--r--libweston/renderer-gl/gl-renderer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libweston/pixman-renderer.c b/libweston/pixman-renderer.c
index 2d70aa47..cae89741 100644
--- a/libweston/pixman-renderer.c
+++ b/libweston/pixman-renderer.c
@@ -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 */
}
diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c
index 25e212b9..6c435507 100644
--- a/libweston/renderer-gl/gl-renderer.c
+++ b/libweston/renderer-gl/gl-renderer.c
@@ -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);