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:
parent
df078a5c9a
commit
6f955a0668
1 changed files with 1 additions and 2 deletions
|
@ -1003,8 +1003,7 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
|
||||||
frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_PENDING_PRESENTED;
|
frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_PENDING_PRESENTED;
|
||||||
break;
|
break;
|
||||||
case CLUTTER_FRAME_RESULT_IDLE:
|
case CLUTTER_FRAME_RESULT_IDLE:
|
||||||
frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_IDLE;
|
clutter_frame_clock_notify_ready (frame_clock);
|
||||||
maybe_reschedule_update (frame_clock);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue