[mutter] util: Add a SCREEN_CAST debug topic
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] util: Add a SCREEN_CAST debug topic
- Date: Fri, 5 Feb 2021 09:49:46 +0000 (UTC)
commit a869df1dd7163b0d937f92230958c8a7e817e128
Author: Jonas Dreßler <verdre v0yd nl>
Date: Fri Feb 5 09:51:08 2021 +0100
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1709>
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 f4ead0645e..859345af0a 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 b10f54f478..2357414936 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 814d144791..a0c3edd6d8 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;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]