summaryrefslogtreecommitdiff
path: root/clutter/clutter-debug.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2009-09-24 12:49:17 +0100
committerRobert Bragg <robert@linux.intel.com>2009-09-24 21:41:49 +0100
commitdae569b468c286ea23aa0e74e910232e025932db (patch)
treec32bfe1f5e10f0858becaaa221248fd364666a48 /clutter/clutter-debug.h
parent27ae9722dedb5bc25415c32326ffc7ba4ef1557d (diff)
downloadclutter-dae569b468c286ea23aa0e74e910232e025932db.tar.gz
[debug] Adds a dump-pick-buffers CLUTTER_DEBUG option
Now if you export CLUTTER_DEBUG=dump-pick-buffers clutter will write out a png, e.g. pick-buffer-00000.png, each time _clutter_to_pick() is called. It's a rather crude way to debug the picking (realtime visualization in a second stage would probably be nicer) but it we've used this approach successfully numerous times when debugging Clutter picking issues so it makes sense to have a debug option for it.
Diffstat (limited to 'clutter/clutter-debug.h')
-rw-r--r--clutter/clutter-debug.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/clutter/clutter-debug.h b/clutter/clutter-debug.h
index 2a32f852c..d7493f3de 100644
--- a/clutter/clutter-debug.h
+++ b/clutter/clutter-debug.h
@@ -7,23 +7,24 @@
G_BEGIN_DECLS
typedef enum {
- CLUTTER_DEBUG_MISC = 1 << 0,
- CLUTTER_DEBUG_ACTOR = 1 << 1,
- CLUTTER_DEBUG_TEXTURE = 1 << 2,
- CLUTTER_DEBUG_EVENT = 1 << 3,
- CLUTTER_DEBUG_PAINT = 1 << 4,
- CLUTTER_DEBUG_GL = 1 << 5,
- CLUTTER_DEBUG_ALPHA = 1 << 6,
- CLUTTER_DEBUG_BEHAVIOUR = 1 << 7,
- CLUTTER_DEBUG_PANGO = 1 << 8,
- CLUTTER_DEBUG_BACKEND = 1 << 9,
- CLUTTER_DEBUG_SCHEDULER = 1 << 10,
- CLUTTER_DEBUG_SCRIPT = 1 << 11,
- CLUTTER_DEBUG_SHADER = 1 << 12,
- CLUTTER_DEBUG_MULTISTAGE = 1 << 13,
- CLUTTER_DEBUG_ANIMATION = 1 << 14,
- CLUTTER_DEBUG_LAYOUT = 1 << 15,
- CLUTTER_DEBUG_NOP_PICKING = 1 << 16,
+ CLUTTER_DEBUG_MISC = 1 << 0,
+ CLUTTER_DEBUG_ACTOR = 1 << 1,
+ CLUTTER_DEBUG_TEXTURE = 1 << 2,
+ CLUTTER_DEBUG_EVENT = 1 << 3,
+ CLUTTER_DEBUG_PAINT = 1 << 4,
+ CLUTTER_DEBUG_GL = 1 << 5,
+ CLUTTER_DEBUG_ALPHA = 1 << 6,
+ CLUTTER_DEBUG_BEHAVIOUR = 1 << 7,
+ CLUTTER_DEBUG_PANGO = 1 << 8,
+ CLUTTER_DEBUG_BACKEND = 1 << 9,
+ CLUTTER_DEBUG_SCHEDULER = 1 << 10,
+ CLUTTER_DEBUG_SCRIPT = 1 << 11,
+ CLUTTER_DEBUG_SHADER = 1 << 12,
+ CLUTTER_DEBUG_MULTISTAGE = 1 << 13,
+ CLUTTER_DEBUG_ANIMATION = 1 << 14,
+ CLUTTER_DEBUG_LAYOUT = 1 << 15,
+ CLUTTER_DEBUG_NOP_PICKING = 1 << 16,
+ CLUTTER_DEBUG_DUMP_PICK_BUFFERS = 1 << 17,
} ClutterDebugFlag;
#ifdef CLUTTER_ENABLE_DEBUG