1
0
Fork 0

clutter/frame-clock: Notify on all empty frames

So that we maintain a perfectly balanced number of callbacks:

  dispatch == notify_ready + notify_presented

Otherwise you can't put any useful logic inside notify_ready and be sure
you're handling all the empty frames.

(cherry picked from commit 85f0f4e227b7f6896fc9fe6d6b9da4d568d2a9e7)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3961>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Daniel van Vugt 2024-10-04 15:50:07 +08:00 committed by Mingi Sung
parent df078a5c9a
commit 6f955a0668
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

View file

@ -1003,8 +1003,7 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_PENDING_PRESENTED;
break;
case CLUTTER_FRAME_RESULT_IDLE:
frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_IDLE;
maybe_reschedule_update (frame_clock);
clutter_frame_clock_notify_ready (frame_clock);
break;
}
break;