[mutter/wip/carlosg/tracing-checks: 3/3] x11: Add COGL_HAS_TRACING checks around tracing code
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/tracing-checks: 3/3] x11: Add COGL_HAS_TRACING checks around tracing code
- Date: Mon, 2 Aug 2021 15:25:51 +0000 (UTC)
commit 36299494ddf979792bf990730c209a77b638931e
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 2 17:15:33 2021 +0200
x11: Add COGL_HAS_TRACING checks around tracing code
This code sneaked unconditionally, even though we can disable
tracing code with -Dprofiler=false. Add some COGL_HAS_TRACING
checks so that this code is also optionally built.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1951>
src/x11/window-x11.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index 9152fde525..7f8e79aa52 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -4074,6 +4074,7 @@ meta_window_x11_update_sync_request_counter (MetaWindow *window,
meta_compositor_queue_frame_drawn (window->display->compositor, window,
no_delay_frame);
+#ifdef COGL_HAS_TRACING
if (G_UNLIKELY (cogl_is_tracing_enabled ()))
{
g_autofree char *description = NULL;
@@ -4086,6 +4087,7 @@ meta_window_x11_update_sync_request_counter (MetaWindow *window,
COGL_TRACE_DESCRIBE (MetaWindowSyncRequestCounter, description);
COGL_TRACE_END (MetaWindowSyncRequestCounter);
}
+#endif
}
Window
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]