summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-06 11:47:45 +0000
committerFrediano Ziglio <fziglio@redhat.com>2015-11-09 10:46:36 +0000
commite2a3d57735e198ff1b3bcf54c89a37b830d0003b (patch)
tree65bbce637ed25c5500590cdb0432078e013a616b
parentcd15fcb6278138be9505814e09cd78bac1e6b4bb (diff)
downloadspice-e2a3d57735e198ff1b3bcf54c89a37b830d0003b.zip
spice-e2a3d57735e198ff1b3bcf54c89a37b830d0003b.tar.gz
spice-e2a3d57735e198ff1b3bcf54c89a37b830d0003b.tar.xz
worker: remove some useless counters
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--server/red_worker.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index df5be98..37aab25 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -424,10 +424,7 @@ typedef struct RedWorker {
uint32_t drawable_count;
uint32_t red_drawable_count;
uint32_t glz_drawable_count;
- uint32_t transparent_count;
- uint32_t shadows_count;
- uint32_t containers_count;
uint32_t stream_count;
uint32_t bits_unique;
@@ -1066,13 +1063,11 @@ static inline void remove_shadow(RedWorker *worker, DrawItem *item)
region_destroy(&shadow->base.rgn);
region_destroy(&shadow->on_hold);
free(shadow);
- worker->shadows_count--;
}
static inline void current_remove_container(RedWorker *worker, Container *container)
{
spice_assert(ring_is_empty(&container->items));
- worker->containers_count--;
ring_remove(&container->base.siblings_link);
region_destroy(&container->base.rgn);
free(container);
@@ -1133,9 +1128,6 @@ static void red_flush_source_surfaces(RedWorker *worker, Drawable *drawable)
static inline void current_remove_drawable(RedWorker *worker, Drawable *item)
{
- if (item->tree_item.effect != QXL_EFFECT_OPAQUE) {
- worker->transparent_count--;
- }
if (!item->stream) {
red_add_item_trace(worker, item);
}
@@ -2770,7 +2762,6 @@ static inline int red_current_add(RedWorker *worker, Ring *ring, Drawable *drawa
region_destroy(&exclude_rgn);
return FALSE;
}
- worker->containers_count++;
item->base.container = container;
ring = &container->items;
}
@@ -2835,7 +2826,6 @@ static inline int red_current_add_with_shadow(RedWorker *worker, Ring *ring, Dra
stat_add(&worker->add_stat, start_time);
return FALSE;
}
- worker->shadows_count++;
// item and his shadow must initially be placed in the same container.
// for now putting them on root.
@@ -3245,9 +3235,6 @@ static inline void red_process_draw(RedWorker *worker, RedDrawable *red_drawable
}
if (red_add_drawable(worker, drawable)) {
- if (drawable->tree_item.effect != QXL_EFFECT_OPAQUE) {
- worker->transparent_count++;
- }
red_pipes_add_drawable(worker, drawable);
}
cleanup: