summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-10 19:51:11 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-10-15 18:30:41 +0100
commitdc1e589916aae32afdcd373d8609be8096682d28 (patch)
treea830a8cf562f32ee0f3e0d010bf85f0236335aec
parent3dffeb25edc9d7a893d9697fc7b19739aff36cc9 (diff)
downloadspice-dc1e589916aae32afdcd373d8609be8096682d28.tar.gz
spice-dc1e589916aae32afdcd373d8609be8096682d28.tar.xz
spice-dc1e589916aae32afdcd373d8609be8096682d28.zip
Remove ACYCLIC_SURFACE_DEBUG
Acked-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--server/red_worker.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index ce96449d..9ed54f52 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -100,7 +100,6 @@
/* TODO: DRAW_ALL is broken. */
//#define DRAW_ALL
//#define COMPRESS_DEBUG
-//#define ACYCLIC_SURFACE_DEBUG
//#define DEBUG_CURSORS
#define CMD_RING_POLL_TIMEOUT 10 //milli
@@ -895,9 +894,6 @@ typedef struct RedSurface {
uint32_t refs;
Ring current;
Ring current_list;
-#ifdef ACYCLIC_SURFACE_DEBUG
- int current_gn;
-#endif
DrawContext context;
Ring depend_on_me;
@@ -4637,9 +4633,6 @@ static void red_update_area(RedWorker *worker, const SpiceRect *area, int surfac
QRegion rgn;
Drawable *last;
Drawable *now;
-#ifdef ACYCLIC_SURFACE_DEBUG
- int gn;
-#endif
spice_debug("surface %d: area ==>", surface_id);
rect_debug(area);
@@ -4651,9 +4644,6 @@ static void red_update_area(RedWorker *worker, const SpiceRect *area, int surfac
surface = &worker->surfaces[surface_id];
last = NULL;
-#ifdef ACYCLIC_SURFACE_DEBUG
- gn = ++surface->current_gn;
-#endif
ring = &surface->current_list;
ring_item = ring;
@@ -4684,11 +4674,6 @@ static void red_update_area(RedWorker *worker, const SpiceRect *area, int surfac
container_cleanup(worker, container);
red_draw_drawable(worker, now);
release_drawable(worker, now);
-#ifdef ACYCLIC_SURFACE_DEBUG
- if (gn != surface->current_gn) {
- spice_error("cyclic surface dependencies");
- }
-#endif
} while (now != last);
validate_area(worker, area, surface_id);
}