mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter/frame-clock: Add refresh rate getter
This gets the refresh rate of the frame clock. To be used by tests. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
parent
59a38fcb69
commit
feb8bfa0bf
@ -77,6 +77,12 @@ struct _ClutterFrameClock
|
|||||||
G_DEFINE_TYPE (ClutterFrameClock, clutter_frame_clock,
|
G_DEFINE_TYPE (ClutterFrameClock, clutter_frame_clock,
|
||||||
G_TYPE_OBJECT)
|
G_TYPE_OBJECT)
|
||||||
|
|
||||||
|
float
|
||||||
|
clutter_frame_clock_get_refresh_rate (ClutterFrameClock *frame_clock)
|
||||||
|
{
|
||||||
|
return frame_clock->refresh_rate;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
clutter_frame_clock_add_timeline (ClutterFrameClock *frame_clock,
|
clutter_frame_clock_add_timeline (ClutterFrameClock *frame_clock,
|
||||||
ClutterTimeline *timeline)
|
ClutterTimeline *timeline)
|
||||||
|
@ -78,4 +78,7 @@ void clutter_frame_clock_add_timeline (ClutterFrameClock *frame_clock,
|
|||||||
void clutter_frame_clock_remove_timeline (ClutterFrameClock *frame_clock,
|
void clutter_frame_clock_remove_timeline (ClutterFrameClock *frame_clock,
|
||||||
ClutterTimeline *timeline);
|
ClutterTimeline *timeline);
|
||||||
|
|
||||||
|
CLUTTER_EXPORT
|
||||||
|
float clutter_frame_clock_get_refresh_rate (ClutterFrameClock *frame_clock);
|
||||||
|
|
||||||
#endif /* CLUTTER_FRAME_CLOCK_H */
|
#endif /* CLUTTER_FRAME_CLOCK_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user