[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.
This commit is contained in:
Emmanuele Bassi
2009-02-28 16:03:11 +00:00
parent 3a4538e4f2
commit 8a1eca7287
3 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,6 @@
#include "cogl-pango-private.h"
#include "cogl-pango-glyph-cache.h"
#include "../clutter-debug.h"
struct _CoglPangoRenderer
{
@ -375,10 +374,10 @@ cogl_pango_renderer_get_cached_glyph (PangoRenderer *renderer,
cairo_surface_destroy (surface);
CLUTTER_NOTE (PANGO, "cache fail %i", glyph);
COGL_NOTE (PANGO, "cache fail %i", glyph);
}
else
CLUTTER_NOTE (PANGO, "cache success %i", glyph);
COGL_NOTE (PANGO, "cache success %i", glyph);
return value;
}