meta/stage-impl: Add trace span to paint_damage_region

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

View File

@ -145,6 +145,9 @@ paint_damage_region (ClutterStageWindow *stage_window,
graphene_matrix_t transform; graphene_matrix_t transform;
int n_rects, i; int n_rects, i;
COGL_TRACE_BEGIN_SCOPED (PaintDamageRegion,
"Meta::StageImpl::paint_damage_region()");
cogl_framebuffer_push_matrix (framebuffer); cogl_framebuffer_push_matrix (framebuffer);
clutter_actor_get_transform (actor, &transform); clutter_actor_get_transform (actor, &transform);
cogl_framebuffer_transform (framebuffer, &transform); cogl_framebuffer_transform (framebuffer, &transform);