[mutter] clutter/stage-view: Expose frame clock getter
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/stage-view: Expose frame clock getter
- Date: Thu, 2 Jul 2020 20:53:30 +0000 (UTC)
commit 34be97d855865906937282b56f4bb7bc94ab17a0
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue May 26 22:21:37 2020 +0200
clutter/stage-view: Expose frame clock getter
So that it can be used by e.g. mutter.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
clutter/clutter/clutter-stage-view-private.h | 2 --
clutter/clutter/clutter-stage-view.c | 3 +++
clutter/clutter/clutter-stage-view.h | 4 ++++
3 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage-view-private.h b/clutter/clutter/clutter-stage-view-private.h
index 2cdcde12b6..02eb22b68a 100644
--- a/clutter/clutter/clutter-stage-view-private.h
+++ b/clutter/clutter/clutter-stage-view-private.h
@@ -65,6 +65,4 @@ void clutter_stage_view_transform_rect_to_onscreen (ClutterStageView
float clutter_stage_view_get_refresh_rate (ClutterStageView *view);
-ClutterFrameClock * clutter_stage_view_get_frame_clock (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 caf1677821..b5b04c5183 100644
--- a/clutter/clutter/clutter-stage-view.c
+++ b/clutter/clutter/clutter-stage-view.c
@@ -1010,6 +1010,9 @@ clutter_stage_view_get_refresh_rate (ClutterStageView *view)
return priv->refresh_rate;
}
+/**
+ * clutter_stage_view_get_frame_clock: (skip)
+ */
ClutterFrameClock *
clutter_stage_view_get_frame_clock (ClutterStageView *view)
{
diff --git a/clutter/clutter/clutter-stage-view.h b/clutter/clutter/clutter-stage-view.h
index eb0184e9ab..ff1963c5d4 100644
--- a/clutter/clutter/clutter-stage-view.h
+++ b/clutter/clutter/clutter-stage-view.h
@@ -27,6 +27,7 @@
#include <cogl/cogl.h>
#include "clutter-macros.h"
+#include "clutter-frame-clock.h"
#define CLUTTER_TYPE_STAGE_VIEW (clutter_stage_view_get_type ())
CLUTTER_EXPORT
@@ -69,4 +70,7 @@ CLUTTER_EXPORT
void clutter_stage_view_get_offscreen_transformation_matrix (ClutterStageView *view,
CoglMatrix *matrix);
+CLUTTER_EXPORT
+ClutterFrameClock * clutter_stage_view_get_frame_clock (ClutterStageView *view);
+
#endif /* __CLUTTER_STAGE_VIEW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]