[mutter/wip/carlosg/backendless-clutter: 31/41] clutter: Export private function to get debug flags




commit 9f71b67d7fc7ace35126d517cec9616e9fd7f560
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 10 19:57:37 2021 +0200

    clutter: Export private function to get debug flags
    
    We're shuffling some code into src/backends, that needs knowing
    about these flags to minimize immediate refactors.

 clutter/clutter/clutter-main.c   | 13 +++++++++++++
 clutter/clutter/clutter-mutter.h |  5 +++++
 2 files changed, 18 insertions(+)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index d79b690a3d..493b286c05 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -2273,6 +2273,19 @@ clutter_remove_debug_flags (ClutterDebugFlag     debug_flags,
   clutter_pick_debug_flags &= ~pick_flags;
 }
 
+void
+clutter_get_debug_flags (ClutterDebugFlag     *debug_flags,
+                         ClutterDrawDebugFlag *draw_flags,
+                         ClutterPickDebugFlag *pick_flags)
+{
+  if (debug_flags)
+    *debug_flags = clutter_debug_flags;
+  if (draw_flags)
+    *draw_flags = clutter_paint_debug_flags;
+  if (pick_flags)
+    *pick_flags = clutter_pick_debug_flags;
+}
+
 void
 _clutter_set_sync_to_vblank (gboolean sync_to_vblank)
 {
diff --git a/clutter/clutter/clutter-mutter.h b/clutter/clutter/clutter-mutter.h
index 3656b4b165..4afe8ac77c 100644
--- a/clutter/clutter/clutter-mutter.h
+++ b/clutter/clutter/clutter-mutter.h
@@ -102,6 +102,11 @@ CLUTTER_EXPORT
 void clutter_stage_repick_device (ClutterStage       *stage,
                                   ClutterInputDevice *device);
 
+CLUTTER_EXPORT
+void clutter_get_debug_flags (ClutterDebugFlag     *debug_flags,
+                              ClutterDrawDebugFlag *draw_flags,
+                              ClutterPickDebugFlag *pick_flags);
+
 #undef __CLUTTER_H_INSIDE__
 
 #endif /* __CLUTTER_MUTTER_H__ */


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