tests/clutter: Add frame clock timeline test case

Tests basic functionality such as that timelines are advanced after
having added themself to frame clock.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
Jonas Ådahl
2020-03-25 18:20:44 +01:00
parent c302f4d379
commit a0d87662f7
3 changed files with 126 additions and 0 deletions

View File

@ -168,6 +168,18 @@ gboolean clutter_test_check_color_at_point (ClutterActor
const ClutterColor *color,
ClutterColor *result);
static inline uint64_t
us (uint64_t us)
{
return us;
}
static inline uint64_t
ms2us (uint64_t ms)
{
return us (ms * 1000);
}
G_END_DECLS
#endif /* __CLUTTER_TEST_UTILS_H__ */