clutter/stage-view: Add trace span to before_swap

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
Ivan Molodetskikh 2023-10-14 07:44:12 +04:00 committed by Marge Bot
parent 3c27b75f2f
commit 58ee1dfdc8

View File

@ -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);
}