mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
meta/stage-impl: Move swap framebuffer span inside the function
It was covering damage calculation also. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
parent
5669ee2dc3
commit
752632276d
@ -266,6 +266,8 @@ swap_framebuffer (ClutterStageWindow *stage_window,
|
|||||||
CoglFramebuffer *framebuffer = clutter_stage_view_get_onscreen (stage_view);
|
CoglFramebuffer *framebuffer = clutter_stage_view_get_onscreen (stage_view);
|
||||||
CoglContext *cogl_context = cogl_framebuffer_get_context (framebuffer);
|
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);
|
clutter_stage_view_before_swap_buffer (stage_view, swap_region);
|
||||||
|
|
||||||
if (COGL_IS_ONSCREEN (framebuffer))
|
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 (&redraw_clip, mtk_region_unref);
|
||||||
g_clear_pointer (&fb_clip_region, 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)
|
if (queued_redraw_clip)
|
||||||
{
|
{
|
||||||
g_autoptr (MtkRegion) swap_region_in_stage_space = NULL;
|
g_autoptr (MtkRegion) swap_region_in_stage_space = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user