From 3a6f6c264d7c721da4894409c21babbd91e3370a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 30 Apr 2021 14:34:31 +0200 Subject: [PATCH] util: Add 'render' debug topic Meant for MetaRenderer and everything related that deals with turning composited frames, or client buffers, into mode set updates. This is slightly related to the debug topic 'kms' is meant for the KMS details. Part-of: --- 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 2ee91025a..5e32db549 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -71,6 +71,7 @@ static const GDebugKey meta_debug_keys[] = { { "screen-cast", META_DEBUG_SCREEN_CAST }, { "remote-desktop", META_DEBUG_REMOTE_DESKTOP }, { "backend", META_DEBUG_BACKEND }, + { "render", META_DEBUG_RENDER }, }; #ifdef WITH_VERBOSE_MODE @@ -329,6 +330,8 @@ topic_name (MetaDebugTopic topic) return "REMOTE_DESKTOP"; case META_DEBUG_BACKEND: return "BACKEND"; + case META_DEBUG_RENDER: + return "RENDER"; case META_DEBUG_VERBOSE: return "VERBOSE"; } diff --git a/src/meta/util.h b/src/meta/util.h index 834e61d49..9e67ed19d 100644 --- a/src/meta/util.h +++ b/src/meta/util.h @@ -80,6 +80,7 @@ void meta_fatal (const char *format, * @META_DEBUG_SCREEN_CAST: screencasting * @META_DEBUG_REMOTE_DESKTOP: remote desktop * @META_DEBUG_BACKEND: backend + * @META_DEBUG_RENDER: native backend rendering */ typedef enum { @@ -109,6 +110,7 @@ typedef enum META_DEBUG_SCREEN_CAST = 1 << 22, META_DEBUG_REMOTE_DESKTOP = 1 << 23, META_DEBUG_BACKEND = 1 << 24, + META_DEBUG_RENDER = 1 << 25, } MetaDebugTopic; /**