diff options
author | Benjamin Otte <otte@redhat.com> | 2011-03-11 01:10:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-03-11 02:10:47 +0100 |
commit | 2a2ad8523fe5d647fbb088d0872d7058b708a106 (patch) | |
tree | ab106a3c532c01c002bffb32b132d4604cad22af /gdk/gdkinternals.h | |
parent | a55b59fef35af3fa86d6b6279f92ca2e3a124252 (diff) | |
download | gtk+-2a2ad8523fe5d647fbb088d0872d7058b708a106.tar.gz |
gdk: Add GDK_RENDERING environment variable
It's useful for debugging rendering issues, both correctness and
performance wise.
See the added documentation for what it does and how it works.
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r-- | gdk/gdkinternals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 790763b361..4fd8129fa8 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -87,10 +87,17 @@ typedef enum { GDK_DEBUG_EVENTLOOP = 1 << 10 } GdkDebugFlag; +typedef enum { + GDK_RENDERING_MODE_SIMILAR = 0, + GDK_RENDERING_MODE_IMAGE, + GDK_RENDERING_MODE_RECORDING +} GdkRenderingMode; + extern GList *_gdk_default_filters; extern GdkWindow *_gdk_parent_root; extern guint _gdk_debug_flags; +extern GdkRenderingMode _gdk_rendering_mode; #ifdef G_ENABLE_DEBUG |