1
0
Fork 0

stage-impl: Use a trace counter for the damaged redraw area

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3952>
This commit is contained in:
Sebastian Wick 2024-08-16 15:23:04 +02:00 committed by Marge Bot
parent 322ac42a65
commit a212f823e7

View file

@ -520,6 +520,9 @@ meta_stage_impl_redraw_view_primary (MetaStageImpl *stage_impl,
COGL_TRACE_BEGIN_SCOPED (RedrawViewPrimary,
"Meta::StageImpl::redraw_view_primary()");
COGL_TRACE_DEFINE_COUNTER_INT (RedrawViewPrimaryDamageArea,
"RedrawDamageArea",
"the damaged area of the redraw");
clutter_stage_view_get_layout (stage_view, &view_rect);
fb_scale = clutter_stage_view_get_scale (stage_view);
@ -703,6 +706,7 @@ meta_stage_impl_redraw_view_primary (MetaStageImpl *stage_impl,
g_string_prepend (rects_str, area_str);
COGL_TRACE_DESCRIBE (RedrawViewPrimary, rects_str->str);
COGL_TRACE_SET_COUNTER_INT (RedrawViewPrimaryDamageArea, area);
}
g_clear_pointer (&redraw_clip, mtk_region_unref);