clutter/frame-clock: Fix dispatch lateness trace text

It was unfortunately broken by a variable overwrite in
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2161.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2630>
This commit is contained in:
Ivan Molodetskikh 2022-09-16 21:29:28 -07:00 committed by Marge Bot
parent 73695995a7
commit 7972594d26

View File

@ -664,10 +664,12 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
#ifdef COGL_HAS_TRACING
int64_t this_dispatch_ready_time_us;
int64_t this_dispatch_time_us;
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockDispatch, "Frame Clock (dispatch)");
this_dispatch_ready_time_us = g_source_get_ready_time (frame_clock->source);
this_dispatch_time_us = time_us;
#endif
ideal_dispatch_time_us = (frame_clock->last_dispatch_time_us -
@ -737,7 +739,7 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
{
g_autofree char *description = NULL;
description = g_strdup_printf ("dispatched %ld µs late",
time_us - this_dispatch_ready_time_us);
this_dispatch_time_us - this_dispatch_ready_time_us);
COGL_TRACE_DESCRIBE (ClutterFrameClockDispatch, description);
}
#endif