[mutter/gbsneto/more-screencast: 5/10] clutter/stage-view: Add method to peek scanout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/more-screencast: 5/10] clutter/stage-view: Add method to peek scanout
- Date: Mon, 31 Aug 2020 15:17:43 +0000 (UTC)
commit 56746526ce264162e7dbcbeaf06376c8174edc14
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Aug 28 22:54:59 2020 -0300
clutter/stage-view: Add method to peek scanout
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1421
clutter/clutter/clutter-stage-view.c | 9 +++++++++
clutter/clutter/clutter-stage-view.h | 3 +++
2 files changed, 12 insertions(+)
---
diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c
index b5d99f5301..84971f790b 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -1009,6 +1009,15 @@ clutter_stage_view_take_scanout (ClutterStageView *view)
return g_steal_pointer (&priv->next_scanout);
}
+CoglScanout *
+clutter_stage_view_peek_scanout (ClutterStageView *view)
+{
+ ClutterStageViewPrivate *priv =
+ clutter_stage_view_get_instance_private (view);
+
+ return priv->next_scanout;
+}
+
void
clutter_stage_view_schedule_update (ClutterStageView *view)
{
diff --git a/clutter/clutter/clutter-stage-view.h b/clutter/clutter/clutter-stage-view.h
index 38b2aa0016..4c54553ed6 100644
--- a/clutter/clutter/clutter-stage-view.h
+++ b/clutter/clutter/clutter-stage-view.h
@@ -76,4 +76,7 @@ void clutter_stage_view_get_offscreen_transformation_matrix (ClutterStageView *v
CLUTTER_EXPORT
ClutterFrameClock * clutter_stage_view_get_frame_clock (ClutterStageView *view);
+CLUTTER_EXPORT
+CoglScanout * clutter_stage_view_peek_scanout (ClutterStageView *view);
+
#endif /* __CLUTTER_STAGE_VIEW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]