clutter/stage-view: Add method to peek scanout

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1421
This commit is contained in:
Georges Basile Stavracas Neto 2020-08-28 22:54:59 -03:00
parent 21a21e7f68
commit 098360f2c2
2 changed files with 15 additions and 0 deletions

View File

@ -1009,6 +1009,18 @@ clutter_stage_view_take_scanout (ClutterStageView *view)
return g_steal_pointer (&priv->next_scanout); return g_steal_pointer (&priv->next_scanout);
} }
/**
* clutter_stage_view_peek_scanout: (skip)
*/
CoglScanout *
clutter_stage_view_peek_scanout (ClutterStageView *view)
{
ClutterStageViewPrivate *priv =
clutter_stage_view_get_instance_private (view);
return priv->next_scanout;
}
void void
clutter_stage_view_schedule_update (ClutterStageView *view) clutter_stage_view_schedule_update (ClutterStageView *view)
{ {

View File

@ -76,4 +76,7 @@ void clutter_stage_view_get_offscreen_transformation_matrix (ClutterStageView *v
CLUTTER_EXPORT CLUTTER_EXPORT
ClutterFrameClock * clutter_stage_view_get_frame_clock (ClutterStageView *view); ClutterFrameClock * clutter_stage_view_get_frame_clock (ClutterStageView *view);
CLUTTER_EXPORT
CoglScanout * clutter_stage_view_peek_scanout (ClutterStageView *view);
#endif /* __CLUTTER_STAGE_VIEW_H__ */ #endif /* __CLUTTER_STAGE_VIEW_H__ */