From 0ac257212e7a26e3346b24930d5356bd7982b5b8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 10 May 2021 19:58:32 +0200 Subject: [PATCH] core: Add private utility function to get Clutter debug flags This will be used to fetch the debug flags from backend code. Part-of: --- src/core/util-private.h | 4 ++++ src/core/util.c | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/core/util-private.h b/src/core/util-private.h index ff9d7ce42..01b663966 100644 --- a/src/core/util-private.h +++ b/src/core/util-private.h @@ -54,4 +54,8 @@ void meta_init_debug_utils (void); (ycoord) >= (rect).y && \ (ycoord) < ((rect).y + (rect).height)) +void meta_get_clutter_debug_flags (ClutterDebugFlag *debug_flags, + ClutterDrawDebugFlag *draw_flags, + ClutterPickDebugFlag *pick_flags); + #endif diff --git a/src/core/util.c b/src/core/util.c index f9f7b63cb..74a884c80 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -40,7 +40,7 @@ #include #endif -#include "clutter/clutter.h" +#include "clutter/clutter-mutter.h" #include "cogl/cogl.h" #include "meta/common.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); } +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 meta_add_debug_paint_flag (MetaDebugPaintFlag flag) {