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>
This commit is contained in:
Jonas Ådahl 2021-07-15 08:59:33 +02:00
parent e4375046e0
commit 4b6631338e
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,7 @@ static const GDebugKey meta_debug_keys[] = {
{ "kms", META_DEBUG_KMS }, { "kms", META_DEBUG_KMS },
{ "screen-cast", META_DEBUG_SCREEN_CAST }, { "screen-cast", META_DEBUG_SCREEN_CAST },
{ "remote-desktop", META_DEBUG_REMOTE_DESKTOP }, { "remote-desktop", META_DEBUG_REMOTE_DESKTOP },
{ "backend", META_DEBUG_BACKEND },
}; };
#ifdef WITH_VERBOSE_MODE #ifdef WITH_VERBOSE_MODE
@ -324,6 +325,8 @@ topic_name (MetaDebugTopic topic)
return "SCREEN_CAST"; return "SCREEN_CAST";
case META_DEBUG_REMOTE_DESKTOP: case META_DEBUG_REMOTE_DESKTOP:
return "REMOTE_DESKTOP"; return "REMOTE_DESKTOP";
case META_DEBUG_BACKEND:
return "BACKEND";
case META_DEBUG_VERBOSE: case META_DEBUG_VERBOSE:
return "VERBOSE"; return "VERBOSE";
case META_DEBUG_WAYLAND: case META_DEBUG_WAYLAND:

View File

@ -79,6 +79,7 @@ void meta_fatal (const char *format,
* @META_DEBUG_KMS: kernel mode setting * @META_DEBUG_KMS: kernel mode setting
* @META_DEBUG_SCREEN_CAST: screencasting * @META_DEBUG_SCREEN_CAST: screencasting
* @META_DEBUG_REMOTE_DESKTOP: remote desktop * @META_DEBUG_REMOTE_DESKTOP: remote desktop
* @META_DEBUG_BACKEND: backend
*/ */
typedef enum typedef enum
{ {
@ -107,6 +108,7 @@ typedef enum
META_DEBUG_KMS = 1 << 21, META_DEBUG_KMS = 1 << 21,
META_DEBUG_SCREEN_CAST = 1 << 22, META_DEBUG_SCREEN_CAST = 1 << 22,
META_DEBUG_REMOTE_DESKTOP = 1 << 23, META_DEBUG_REMOTE_DESKTOP = 1 << 23,
META_DEBUG_BACKEND = 1 << 24,
} MetaDebugTopic; } MetaDebugTopic;
/** /**