forked from AuroraMiddleware/gtk
gsk: Add a setter for debug flags
We need to set the global flags, since these are picked up initially by new renderers.
This commit is contained in:
parent
ba21a7764b
commit
2be16f36ed
@ -43,7 +43,6 @@ gboolean
|
|||||||
gsk_check_debug_flags (GskDebugFlags flags)
|
gsk_check_debug_flags (GskDebugFlags flags)
|
||||||
{
|
{
|
||||||
init_debug_flags ();
|
init_debug_flags ();
|
||||||
|
|
||||||
return (gsk_debug_flags & flags) != 0;
|
return (gsk_debug_flags & flags) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,6 +50,12 @@ GskDebugFlags
|
|||||||
gsk_get_debug_flags (void)
|
gsk_get_debug_flags (void)
|
||||||
{
|
{
|
||||||
init_debug_flags ();
|
init_debug_flags ();
|
||||||
|
|
||||||
return gsk_debug_flags;
|
return gsk_debug_flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gsk_set_debug_flags (GskDebugFlags flags)
|
||||||
|
{
|
||||||
|
init_debug_flags ();
|
||||||
|
gsk_debug_flags = flags;
|
||||||
|
}
|
||||||
|
@ -25,6 +25,8 @@ typedef enum {
|
|||||||
#define GSK_DEBUG_ANY ((1 << 13) - 1)
|
#define GSK_DEBUG_ANY ((1 << 13) - 1)
|
||||||
|
|
||||||
GskDebugFlags gsk_get_debug_flags (void);
|
GskDebugFlags gsk_get_debug_flags (void);
|
||||||
|
void gsk_set_debug_flags (GskDebugFlags flags);
|
||||||
|
|
||||||
gboolean gsk_check_debug_flags (GskDebugFlags flags);
|
gboolean gsk_check_debug_flags (GskDebugFlags flags);
|
||||||
|
|
||||||
#ifdef G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user