mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Gather all time unit conversion helpers in one place
We had time unit conversion helpers (e.g. us2ms(), ns2us(), etc) in multiple places. Clean that up by moving them all to a common file. That file is clutter-private.h, as it's accessible by both from clutter/ and src/. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
@ -168,18 +168,6 @@ 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__ */
|
||||
|
Reference in New Issue
Block a user