From a869df1dd7163b0d937f92230958c8a7e817e128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Fri, 5 Feb 2021 09:51:08 +0100 Subject: [PATCH] util: Add a SCREEN_CAST debug topic This is going to be useful to log dropped frames and other more common errors about screencasting. Part-of: --- src/core/main.c | 1 + src/core/util.c | 2 ++ src/meta/util.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/core/main.c b/src/core/main.c index f4ead0645..859345af0 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -121,6 +121,7 @@ static const GDebugKey meta_debug_keys[] = { { "input", META_DEBUG_INPUT }, { "wayland", META_DEBUG_WAYLAND }, { "kms", META_DEBUG_KMS }, + { "screen-cast", META_DEBUG_SCREEN_CAST }, }; /* diff --git a/src/core/util.c b/src/core/util.c index b10f54f47..235741493 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -278,6 +278,8 @@ topic_name (MetaDebugTopic topic) return "INPUT"; case META_DEBUG_KMS: return "KMS"; + case META_DEBUG_SCREEN_CAST: + return "SCREEN_CAST"; case META_DEBUG_VERBOSE: return "VERBOSE"; case META_DEBUG_WAYLAND: diff --git a/src/meta/util.h b/src/meta/util.h index 814d14479..a0c3edd6d 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -77,6 +77,7 @@ void meta_fatal (const char *format, * @META_DEBUG_EDGE_RESISTANCE: edge resistance * @META_DEBUG_WAYLAND: Wayland * @META_DEBUG_KMS: kernel mode setting + * @META_DEBUG_SCREEN_CAST: screencasting */ typedef enum { @@ -103,6 +104,7 @@ typedef enum META_DEBUG_INPUT = 1 << 19, META_DEBUG_WAYLAND = 1 << 20, META_DEBUG_KMS = 1 << 21, + META_DEBUG_SCREEN_CAST = 1 << 22, } MetaDebugTopic; /**