From 8c88dbfbe869e969f347f7f652c625e1160b3c3a Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Sun, 24 Sep 2023 18:58:37 +0300 Subject: [PATCH] wayland: Rename source_ready_time_us to frame_deadline_us The value of this variable represents the last point in time in which an update would be allowed to scheduled for the given frame. Rename it for clarity and in preparation for the next commits. No change in behavior. Part-of: --- src/wayland/meta-wayland.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c index 59338cd0c..4832d0ed7 100644 --- a/src/wayland/meta-wayland.c +++ b/src/wayland/meta-wayland.c @@ -322,17 +322,17 @@ on_after_update (ClutterStage *stage, } else { - int64_t source_ready_time_us; + int64_t frame_deadline_us; if (g_source_get_ready_time (source) != -1 && frame_callback_source->target_presentation_time_us < target_presentation_time_us) emit_frame_callbacks_for_stage_view (compositor, stage_view); - source_ready_time_us = target_presentation_time_us - - min_render_time_allowed_us; + frame_deadline_us = target_presentation_time_us - + min_render_time_allowed_us; - if (source_ready_time_us <= g_get_monotonic_time ()) + if (frame_deadline_us <= g_get_monotonic_time ()) { g_source_set_ready_time (source, -1); emit_frame_callbacks_for_stage_view (compositor, stage_view); @@ -341,7 +341,7 @@ on_after_update (ClutterStage *stage, { frame_callback_source->target_presentation_time_us = target_presentation_time_us; - g_source_set_ready_time (source, source_ready_time_us); + g_source_set_ready_time (source, frame_deadline_us); } } #else