From 5161132ec71ae5e7052b87461f97ece91e1b19d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 1 Oct 2013 17:14:44 +0200 Subject: [PATCH] display: rename detach_streams_behind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Acked-by: Fabiano FidĂȘncio --- server/display-channel.c | 10 +++++----- server/red_worker.c | 2 +- server/stream.c | 2 +- server/stream.h | 4 +++- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/server/display-channel.c b/server/display-channel.c index 2bf65a87..a37e651c 100644 --- a/server/display-channel.c +++ b/server/display-channel.c @@ -713,7 +713,7 @@ static int current_add_with_shadow(DisplayChannel *display, Ring *ring, Drawable // only primary surface streams are supported if (is_primary_surface(display, item->surface_id)) { - detach_streams_behind(display, &shadow->base.rgn, NULL); + stream_detach_behind(display, &shadow->base.rgn, NULL); } ring_add(ring, &shadow->base.siblings_link); @@ -726,7 +726,7 @@ static int current_add_with_shadow(DisplayChannel *display, Ring *ring, Drawable streams_update_visible_region(display, item); } else { if (is_primary_surface(display, item->surface_id)) { - detach_streams_behind(display, &item->tree_item.base.rgn, item); + stream_detach_behind(display, &item->tree_item.base.rgn, item); } } stat_add(&display->add_stat, start_time); @@ -836,14 +836,14 @@ static int current_add(DisplayChannel *display, Ring *ring, Drawable *drawable) current_add_drawable(display, drawable, ring); } else { /* - * red_detach_streams_behind can affect the current tree since + * stream_detach_behind can affect the current tree since * it may trigger calls to display_channel_draw. Thus, the * drawable should be added to the tree before calling - * red_detach_streams_behind + * stream_detach_behind */ current_add_drawable(display, drawable, ring); if (is_primary_surface(display, drawable->surface_id)) { - detach_streams_behind(display, &drawable->tree_item.base.rgn, drawable); + stream_detach_behind(display, &drawable->tree_item.base.rgn, drawable); } } region_destroy(&exclude_rgn); diff --git a/server/red_worker.c b/server/red_worker.c index 47029493..6045ae5a 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -333,7 +333,7 @@ static inline int red_handle_surfaces_dependencies(DisplayChannel *display, Draw QRegion depend_region; region_init(&depend_region); region_add(&depend_region, &drawable->red_drawable->surfaces_rects[x]); - detach_streams_behind(display, &depend_region, NULL); + stream_detach_behind(display, &depend_region, NULL); } } } diff --git a/server/stream.c b/server/stream.c index 3bd91b6e..cb7271e6 100644 --- a/server/stream.c +++ b/server/stream.c @@ -837,7 +837,7 @@ static void detach_stream_gracefully(DisplayChannel *display, Stream *stream, * involves sending an upgrade image to the client, this drawable won't be rendered * (see dcc_detach_stream_gracefully). */ -void detach_streams_behind(DisplayChannel *display, QRegion *region, Drawable *drawable) +void stream_detach_behind(DisplayChannel *display, QRegion *region, Drawable *drawable) { Ring *ring = &display->streams; RingItem *item = ring_get_head(ring); diff --git a/server/stream.h b/server/stream.h index c436c2ed..214d1df6 100644 --- a/server/stream.h +++ b/server/stream.h @@ -152,6 +152,9 @@ void stream_timeout (DisplayChan void stream_detach_and_stop (DisplayChannel *display); void stream_trace_add_drawable (DisplayChannel *display, Drawable *item); +void stream_detach_behind (DisplayChannel *display, + QRegion *region, + Drawable *drawable); void stream_agent_unref (DisplayChannel *display, StreamAgent *agent); @@ -159,6 +162,5 @@ void stream_agent_stats_print (StreamAgent void stream_agent_stop (StreamAgent *agent); void detach_stream(DisplayChannel *display, Stream *stream, int detach_sized); -void detach_streams_behind(DisplayChannel *display, QRegion *region, Drawable *drawable); #endif /* STREAM_H */