[mutter/gbsneto/more-screencast: 12/19] 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: 12/19] clutter/stage-view: Add method to peek scanout
- Date: Tue, 1 Sep 2020 16:05:37 +0000 (UTC)
commit 098360f2c20ae8a429b6b81926d92ce8e1d2676e
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 | 12 ++++++++++++
clutter/clutter/clutter-stage-view.h | 3 +++
2 files changed, 15 insertions(+)
---
diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c
index b5d99f5301..00a4d5ad14 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -1009,6 +1009,18 @@ clutter_stage_view_take_scanout (ClutterStageView *view)
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
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]