diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-09-19 12:36:52 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-09-19 14:48:06 +0100 |
commit | 662d12aeff9c7404b915e44777b50f0995252fd8 (patch) | |
tree | a4a51eec8fb0defb9a8f3a23c1b83d7dbd49a441 /clutter/clutter-debug.h | |
parent | f315e760de3f9e15088cedec89139533a0717f3a (diff) | |
download | clutter-662d12aeff9c7404b915e44777b50f0995252fd8.tar.gz |
actor: add oob-transform opt to catch out-of-band transforms
Out-of-band transforms are considered to be all actor transforms done
directly with the Cogl API instead of via ClutterActor::apply_transform.
By running with CLUTTER_DEBUG=oob-transform then Clutter will explicitly
try to detect when un-expected transforms have been applied to the
modelview matrix stack.
Out-of-band transforms can lead to awkward bugs in Clutter applications
because Clutter itself doesn't know about them and this can disrupt
Clutter's input handling and calculations of actor paint-volumes
which can lead to visual artifacts.
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Diffstat (limited to 'clutter/clutter-debug.h')
-rw-r--r-- | clutter/clutter-debug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clutter/clutter-debug.h b/clutter/clutter-debug.h index 9ee1e4447..75263fd0c 100644 --- a/clutter/clutter-debug.h +++ b/clutter/clutter-debug.h @@ -26,7 +26,8 @@ typedef enum { CLUTTER_DEBUG_LAYOUT = 1 << 15, CLUTTER_DEBUG_PICK = 1 << 16, CLUTTER_DEBUG_EVENTLOOP = 1 << 17, - CLUTTER_DEBUG_CLIPPING = 1 << 18 + CLUTTER_DEBUG_CLIPPING = 1 << 18, + CLUTTER_DEBUG_OOB_TRANSFORMS = 1 << 19 } ClutterDebugFlag; typedef enum { |