From 920f857c2d4ad3e8c238c44756b737169b4c7408 Mon Sep 17 00:00:00 2001 From: Marc-AndrĂ© Lureau Date: Tue, 24 Sep 2013 15:11:21 +0200 Subject: worker: move display_channel_flush_all_surfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Fabiano FidĂȘncio --- server/display-channel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'server/display-channel.c') diff --git a/server/display-channel.c b/server/display-channel.c index 37ba5c31..0f801d31 100644 --- a/server/display-channel.c +++ b/server/display-channel.c @@ -838,3 +838,14 @@ int display_channel_wait_for_migrate_data(DisplayChannel *display) } return FALSE; } + +void display_channel_flush_all_surfaces(DisplayChannel *display) +{ + int x; + + for (x = 0; x < NUM_SURFACES; ++x) { + if (display->surfaces[x].context.canvas) { + display_channel_current_flush(display, x); + } + } +} -- cgit