From 58ee1dfdc83f43969715883d305aca43194b0dc7 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 14 Oct 2023 07:44:12 +0400 Subject: [PATCH] clutter/stage-view: Add trace span to before_swap Part-of: --- clutter/clutter/clutter-stage-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c index 4e4b9c0b4..7f2363794 100644 --- a/clutter/clutter/clutter-stage-view.c +++ b/clutter/clutter/clutter-stage-view.c @@ -446,6 +446,9 @@ clutter_stage_view_before_swap_buffer (ClutterStageView *view, ClutterStageViewPrivate *priv = clutter_stage_view_get_instance_private (view); + COGL_TRACE_BEGIN_SCOPED (BeforeSwap, + "Clutter::StageView::before_swap_buffer()"); + if (priv->shadow.framebuffer) copy_shadowfb_to_onscreen (view, swap_region); }