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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3521>
This commit is contained in:
parent
83713a38bb
commit
8c88dbfbe8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user