[mutter] util: Add 'backend' debug topic



commit 4b6631338e2b954ffe69a2b96d27854e5bad492e
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Jul 15 08:59:33 2021 +0200

    util: Add 'backend' debug topic
    
    Meant for backend things that are not large enough to warrant their own
    topic.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>

 src/core/util.c | 3 +++
 src/meta/util.h | 2 ++
 2 files changed, 5 insertions(+)
---
diff --git a/src/core/util.c b/src/core/util.c
index da3dfa5f45..f9f7b63cbd 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -70,6 +70,7 @@ static const GDebugKey meta_debug_keys[] = {
   { "kms", META_DEBUG_KMS },
   { "screen-cast", META_DEBUG_SCREEN_CAST },
   { "remote-desktop", META_DEBUG_REMOTE_DESKTOP },
+  { "backend", META_DEBUG_BACKEND },
 };
 
 #ifdef WITH_VERBOSE_MODE
@@ -324,6 +325,8 @@ topic_name (MetaDebugTopic topic)
       return "SCREEN_CAST";
     case META_DEBUG_REMOTE_DESKTOP:
       return "REMOTE_DESKTOP";
+    case META_DEBUG_BACKEND:
+      return "BACKEND";
     case META_DEBUG_VERBOSE:
       return "VERBOSE";
     case META_DEBUG_WAYLAND:
diff --git a/src/meta/util.h b/src/meta/util.h
index 8e71fb0719..834e61d492 100644
--- a/src/meta/util.h
+++ b/src/meta/util.h
@@ -79,6 +79,7 @@ void meta_fatal      (const char *format,
  * @META_DEBUG_KMS: kernel mode setting
  * @META_DEBUG_SCREEN_CAST: screencasting
  * @META_DEBUG_REMOTE_DESKTOP: remote desktop
+ * @META_DEBUG_BACKEND: backend
  */
 typedef enum
 {
@@ -107,6 +108,7 @@ typedef enum
   META_DEBUG_KMS             = 1 << 21,
   META_DEBUG_SCREEN_CAST     = 1 << 22,
   META_DEBUG_REMOTE_DESKTOP  = 1 << 23,
+  META_DEBUG_BACKEND         = 1 << 24,
 } MetaDebugTopic;
 
 /**


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