mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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>
This commit is contained in:
parent
a42c470efd
commit
36299494dd
@ -4074,6 +4074,7 @@ meta_window_x11_update_sync_request_counter (MetaWindow *window,
|
|||||||
meta_compositor_queue_frame_drawn (window->display->compositor, window,
|
meta_compositor_queue_frame_drawn (window->display->compositor, window,
|
||||||
no_delay_frame);
|
no_delay_frame);
|
||||||
|
|
||||||
|
#ifdef COGL_HAS_TRACING
|
||||||
if (G_UNLIKELY (cogl_is_tracing_enabled ()))
|
if (G_UNLIKELY (cogl_is_tracing_enabled ()))
|
||||||
{
|
{
|
||||||
g_autofree char *description = NULL;
|
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_DESCRIBE (MetaWindowSyncRequestCounter, description);
|
||||||
COGL_TRACE_END (MetaWindowSyncRequestCounter);
|
COGL_TRACE_END (MetaWindowSyncRequestCounter);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Window
|
Window
|
||||||
|
Loading…
Reference in New Issue
Block a user