From da9a1720fb42bdbd3fc6ef6feb2e50721224ee44 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 28 Feb 2009 16:03:11 +0000 Subject: [PATCH] [cogl] Add a PANGO debug flag for CoglPango use The CoglPango code falls under the COGL "jurisdiction"; this means that it cannot include Clutter headers unless strictly necessary. The CoglPangoRenderer code was using the CLUTTER_NOTE() macro. Now that COGL has it's own COGL_NOTE() similar macro, CoglPango should use that and avoid including clutter-debug.h (which pulls in clutter-private.h which in turn pulls in clutter-actor.h). A new flag, COGL_DEBUG_PANGO, has been added to the COGL debug flags. --- cogl-debug.h | 3 ++- common/cogl-debug.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cogl-debug.h b/cogl-debug.h index 815dcbc4f..44711c172 100644 --- a/cogl-debug.h +++ b/cogl-debug.h @@ -11,7 +11,8 @@ typedef enum { COGL_DEBUG_MATERIAL = 1 << 2, COGL_DEBUG_SHADER = 1 << 3, COGL_DEBUG_OFFSCREEN = 1 << 4, - COGL_DEBUG_DRAW = 1 << 5 + COGL_DEBUG_DRAW = 1 << 5, + COGL_DEBUG_PANGO = 1 << 6 } CoglDebugFlags; #ifdef COGL_ENABLE_DEBUG diff --git a/common/cogl-debug.c b/common/cogl-debug.c index 863da3b4a..0497d744f 100644 --- a/common/cogl-debug.c +++ b/common/cogl-debug.c @@ -13,7 +13,8 @@ static const GDebugKey cogl_debug_keys[] = { { "material", COGL_DEBUG_MATERIAL }, { "shader", COGL_DEBUG_SHADER }, { "offscreen", COGL_DEBUG_OFFSCREEN }, - { "draw", COGL_DEBUG_DRAW } + { "draw", COGL_DEBUG_DRAW }, + { "pango", COGL_DEBUG_PANGO } }; static const gint n_cogl_debug_keys = G_N_ELEMENTS (cogl_debug_keys);