clutter/stage-view: Add notify_ready()

Just as with the frame clock, add an API to communicate that a frame did
not result in a presentation. This can't happen yet but will when we
emulate atomic cursor plane changes using legacy drmMode API.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-10-10 00:37:05 +02:00 committed by Marge Bot
parent 84f454fd4f
commit 88b06e39f4
2 changed files with 11 additions and 0 deletions

View File

@ -68,4 +68,6 @@ void clutter_stage_view_schedule_update (ClutterStageView *view);
void clutter_stage_view_notify_presented (ClutterStageView *view,
ClutterFrameInfo *frame_info);
void clutter_stage_view_notify_ready (ClutterStageView *view);
#endif /* __CLUTTER_STAGE_VIEW_PRIVATE_H__ */

View File

@ -1134,6 +1134,15 @@ clutter_stage_view_notify_presented (ClutterStageView *view,
clutter_frame_clock_notify_presented (priv->frame_clock, frame_info);
}
void
clutter_stage_view_notify_ready (ClutterStageView *view)
{
ClutterStageViewPrivate *priv =
clutter_stage_view_get_instance_private (view);
clutter_frame_clock_notify_ready (priv->frame_clock);
}
static void
sanity_check_framebuffer (ClutterStageView *view)
{