From 752632276d73aeb4e0caceaa214c380f7cfe8c9a Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 12 Oct 2023 10:02:21 +0400 Subject: [PATCH] meta/stage-impl: Move swap framebuffer span inside the function It was covering damage calculation also. Part-of: --- src/backends/meta-stage-impl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backends/meta-stage-impl.c b/src/backends/meta-stage-impl.c index 2d6273163..8ab2ebc33 100644 --- a/src/backends/meta-stage-impl.c +++ b/src/backends/meta-stage-impl.c @@ -266,6 +266,8 @@ swap_framebuffer (ClutterStageWindow *stage_window, CoglFramebuffer *framebuffer = clutter_stage_view_get_onscreen (stage_view); CoglContext *cogl_context = cogl_framebuffer_get_context (framebuffer); + COGL_TRACE_BEGIN_SCOPED (SwapFramebuffer, "Meta::StageImpl::swap_framebuffer()"); + clutter_stage_view_before_swap_buffer (stage_view, swap_region); if (COGL_IS_ONSCREEN (framebuffer)) @@ -682,9 +684,6 @@ meta_stage_impl_redraw_view_primary (MetaStageImpl *stage_impl, g_clear_pointer (&redraw_clip, mtk_region_unref); g_clear_pointer (&fb_clip_region, mtk_region_unref); - COGL_TRACE_BEGIN_SCOPED (MetaStageImplRedrawViewSwapFramebuffer, - "Meta::StageImpl::redraw_view_primary#swap_framebuffer()"); - if (queued_redraw_clip) { g_autoptr (MtkRegion) swap_region_in_stage_space = NULL;