stage-view: Add short cut to clutter_frame_clock_update_now()
Stage view users can schedule updates at ease with clutter_stage_view_schedule_update(), but couldn't schedule update "now". Make that easy too by adding clutter_stage_view_schedule_update_now(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2854>
This commit is contained in:
parent
cc2bbb25ba
commit
71b787f169
@ -1099,6 +1099,15 @@ clutter_stage_view_schedule_update (ClutterStageView *view)
|
||||
clutter_frame_clock_schedule_update (priv->frame_clock);
|
||||
}
|
||||
|
||||
void
|
||||
clutter_stage_view_schedule_update_now (ClutterStageView *view)
|
||||
{
|
||||
ClutterStageViewPrivate *priv =
|
||||
clutter_stage_view_get_instance_private (view);
|
||||
|
||||
clutter_frame_clock_schedule_update_now (priv->frame_clock);
|
||||
}
|
||||
|
||||
float
|
||||
clutter_stage_view_get_refresh_rate (ClutterStageView *view)
|
||||
{
|
||||
|
@ -85,4 +85,7 @@ float clutter_stage_view_get_refresh_rate (ClutterStageView *view);
|
||||
CLUTTER_EXPORT
|
||||
gboolean clutter_stage_view_has_shadowfb (ClutterStageView *view);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
void clutter_stage_view_schedule_update_now (ClutterStageView *view);
|
||||
|
||||
#endif /* __CLUTTER_STAGE_VIEW_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user