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
This commit is contained in:
Jonas Ådahl 2020-05-26 22:21:37 +02:00
parent 1de436684c
commit 34be97d855
3 changed files with 7 additions and 2 deletions

View File

@ -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__ */

View File

@ -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)
{

View File

@ -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__ */