summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-17 02:00:24 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-12 12:09:34 +0000
commitcc8107c830d045a2deb9bffed6d32d1f563c9a35 (patch)
treea650c1c24c197b16aa8a026095d9bf17434f4889 /server
parent6380c432584618e20fb143c5dc4045be5c2d8670 (diff)
worker: rename a bit current_add functions
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/red_worker.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index be2f8d65..11aa3f04 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1358,7 +1358,7 @@ static void exclude_region(RedWorker *worker, Ring *ring, RingItem *ring_item, Q
}
}
-static inline void __current_add_drawable(RedWorker *worker, Drawable *drawable, RingItem *pos)
+static inline void current_add_drawable(RedWorker *worker, Drawable *drawable, RingItem *pos)
{
DisplayChannel *display = worker->display_channel;
RedSurface *surface;
@@ -2141,7 +2141,7 @@ static inline int red_current_add_equal(RedWorker *worker, DrawItem *item, TreeI
int add_after = !!other_drawable->stream &&
is_drawable_independent_from_surfaces(drawable);
display_channel_stream_maintenance(worker->display_channel, drawable, other_drawable);
- __current_add_drawable(worker, drawable, &other->siblings_link);
+ current_add_drawable(worker, drawable, &other->siblings_link);
other_drawable->refs++;
current_remove_drawable(worker, other_drawable);
if (add_after) {
@@ -2199,7 +2199,7 @@ static inline int red_current_add_equal(RedWorker *worker, DrawItem *item, TreeI
break;
case QXL_EFFECT_OPAQUE_BRUSH:
if (is_same_geometry(drawable, other_drawable)) {
- __current_add_drawable(worker, drawable, &other->siblings_link);
+ current_add_drawable(worker, drawable, &other->siblings_link);
remove_drawable(worker, other_drawable);
red_pipes_add_drawable(worker, drawable);
return TRUE;
@@ -2269,7 +2269,7 @@ static void red_use_stream_trace(DisplayChannel *display, Drawable *drawable)
}
}
-static inline int red_current_add(RedWorker *worker, Ring *ring, Drawable *drawable)
+static inline int current_add(RedWorker *worker, Ring *ring, Drawable *drawable)
{
DrawItem *item = &drawable->tree_item;
#ifdef RED_WORKER_STAT
@@ -2371,14 +2371,14 @@ static inline int red_current_add(RedWorker *worker, Ring *ring, Drawable *drawa
* safety (todo: Not sure if exclude_region can affect the drawable
* if it is added to the tree before calling exclude_region).
*/
- __current_add_drawable(worker, drawable, ring);
+ current_add_drawable(worker, drawable, ring);
} else {
/*
* red_detach_streams_behind can affect the current tree since it may
* trigger calls to update_area. Thus, the drawable should be added to the tree
* before calling red_detach_streams_behind
*/
- __current_add_drawable(worker, drawable, ring);
+ current_add_drawable(worker, drawable, ring);
if (is_primary_surface(worker->display_channel, drawable->surface_id)) {
detach_streams_behind(worker->display_channel, &drawable->tree_item.base.rgn, drawable);
}
@@ -2397,7 +2397,7 @@ static void add_clip_rects(QRegion *rgn, SpiceClipRects *data)
}
}
-static inline int red_current_add_with_shadow(RedWorker *worker, Ring *ring, Drawable *item)
+static inline int current_add_with_shadow(RedWorker *worker, Ring *ring, Drawable *item)
{
DisplayChannel *display = worker->display_channel;
#ifdef RED_WORKER_STAT
@@ -2425,7 +2425,7 @@ static inline int red_current_add_with_shadow(RedWorker *worker, Ring *ring, Dra
}
ring_add(ring, &shadow->base.siblings_link);
- __current_add_drawable(worker, item, ring);
+ current_add_drawable(worker, item, ring);
if (item->tree_item.effect == QXL_EFFECT_OPAQUE) {
QRegion exclude_rgn;
region_clone(&exclude_rgn, &item->tree_item.base.rgn);
@@ -2519,10 +2519,10 @@ static int red_add_drawable(RedWorker *worker, Drawable *drawable)
Ring *ring = &worker->surfaces[surface_id].current;
if (has_shadow(red_drawable)) {
- ret = red_current_add_with_shadow(worker, ring, drawable);
+ ret = current_add_with_shadow(worker, ring, drawable);
} else {
drawable_update_streamable(display, drawable);
- ret = red_current_add(worker, ring, drawable);
+ ret = current_add(worker, ring, drawable);
}
#ifdef RED_WORKER_STAT