core: Add private utility function to get Clutter debug flags

This will be used to fetch the debug flags from backend code.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
This commit is contained in:
Carlos Garnacho 2021-05-10 19:58:32 +02:00
parent 7712b58170
commit 0ac257212e
2 changed files with 13 additions and 1 deletions

View File

@ -54,4 +54,8 @@ void meta_init_debug_utils (void);
(ycoord) >= (rect).y && \ (ycoord) >= (rect).y && \
(ycoord) < ((rect).y + (rect).height)) (ycoord) < ((rect).y + (rect).height))
void meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags);
#endif #endif

View File

@ -40,7 +40,7 @@
#include <sys/prctl.h> #include <sys/prctl.h>
#endif #endif
#include "clutter/clutter.h" #include "clutter/clutter-mutter.h"
#include "cogl/cogl.h" #include "cogl/cogl.h"
#include "meta/common.h" #include "meta/common.h"
#include "meta/main.h" #include "meta/main.h"
@ -769,6 +769,14 @@ meta_remove_clutter_debug_flags (ClutterDebugFlag debug_flags,
clutter_remove_debug_flags (debug_flags, draw_flags, pick_flags); clutter_remove_debug_flags (debug_flags, draw_flags, pick_flags);
} }
void
meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags,
ClutterDrawDebugFlag *draw_flags,
ClutterPickDebugFlag *pick_flags)
{
clutter_get_debug_flags (debug_flags, draw_flags, pick_flags);
}
void void
meta_add_debug_paint_flag (MetaDebugPaintFlag flag) meta_add_debug_paint_flag (MetaDebugPaintFlag flag)
{ {