[mutter/wip/carlosg/backendless-clutter: 6/16] core: Add private utility function to get Clutter debug flags




commit 6935e99e8c08c8c59bd8f80eb22f92a2c900fc70
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 10 19:58:32 2021 +0200

    core: Add private utility function to get Clutter debug flags
    
    This will be used to fetch the debug flags from backend code.

 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 0d68a72021..32c3167573 100644
--- a/src/core/util-private.h
+++ b/src/core/util-private.h
@@ -43,4 +43,8 @@ void     meta_set_is_wayland_compositor (gboolean setting);
 char *   meta_generate_random_id (GRand *rand,
                                   int    length);
 
+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 bbb5a2470b..b779aac74e 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -36,7 +36,7 @@
 #include <X11/Xlib.h>   /* must explicitly be included for Solaris; #326746 */
 #include <X11/Xutil.h>  /* Just for the definition of the various gravities */
 
-#include "clutter/clutter.h"
+#include "clutter/clutter-mutter.h"
 #include "cogl/cogl.h"
 #include "meta/common.h"
 #include "meta/main.h"
@@ -724,6 +724,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)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]