[mutter/wip/carlosg/backendless-clutter: 32/41] core: Add private utility function to get Clutter debug flags
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/backendless-clutter: 32/41] core: Add private utility function to get Clutter debug flags
- Date: Mon, 17 May 2021 20:38:36 +0000 (UTC)
commit f634535ce0f79268eef8987084fd90d16f8b6beb
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 010de58316..45eba72ac4 100644
--- a/src/core/util-private.h
+++ b/src/core/util-private.h
@@ -51,4 +51,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 28e7947819..466e95d5c9 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -40,7 +40,7 @@
#include <sys/prctl.h>
#endif
-#include "clutter/clutter.h"
+#include "clutter/clutter-mutter.h"
#include "cogl/cogl.h"
#include "meta/common.h"
#include "meta/main.h"
@@ -779,6 +779,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]