[mutter] clutter/stage-view: Add notify_ready()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/stage-view: Add notify_ready()
- Date: Fri, 22 Jan 2021 17:08:31 +0000 (UTC)
commit 88b06e39f4ac0122d3b25556f519fcada75c46b8
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Sat Oct 10 00:37:05 2020 +0200
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>
clutter/clutter/clutter-stage-view-private.h | 2 ++
clutter/clutter/clutter-stage-view.c | 9 +++++++++
2 files changed, 11 insertions(+)
---
diff --git a/clutter/clutter/clutter-stage-view-private.h b/clutter/clutter/clutter-stage-view-private.h
index deb56a1de8..feee44e9e5 100644
--- a/clutter/clutter/clutter-stage-view-private.h
+++ b/clutter/clutter/clutter-stage-view-private.h
@@ -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__ */
diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c
index 81662de061..66d052ebe7 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]