The input_timestamps_unstable_v1 protocol allows clients to subscribe to high-resolution timestamp events for input events (see [1]).
This patchset implements the input_timestamps_unstable_v1 protocol in libweston and also adds tests for the implementation in the weston test suite. Note that, as expected, this patchset depends on the presence of the protocol description file, which is currently pending inclusion in wayland-protocols. Patches (1) and (2) introduce some helper code which is used by later patches. Patch (2) in particular adds test helpers that also act as a nice example of a client side implementation of the input_timestamps_unstable_v1 protocol. Patch (3) introduces some common support code in libweston, which allows for cleaner and more focused patches for keyboard, pointer and touch timestamp event support in patches (4), (5) and (6) respectively. [1] https://lists.freedesktop.org/archives/wayland-devel/2017-December/036320.html Alexandros Frantzis (6): shared: Add timespec_eq helper function tests: Introduce input timestamps helper libweston: Introduce input-timestamps support libweston: Implement keyboard timestamps for input_timestamps_unstable_v1 libweston: Implement pointer timestamps for input_timestamps_unstable_v1 libweston: Implement touch timestamps for input_timestamps_unstable_v1 Makefile.am | 20 ++- libweston/compositor.h | 6 + libweston/input.c | 250 ++++++++++++++++++++++++++++++++++++-- shared/timespec-util.h | 13 ++ tests/input-timestamps-helper.c | 177 +++++++++++++++++++++++++++ tests/input-timestamps-helper.h | 46 +++++++ tests/keyboard-test.c | 45 +++++++ tests/pointer-test.c | 66 ++++++++++ tests/timespec-test.c | 12 ++ tests/touch-test.c | 46 +++++++ tests/weston-test-client-helper.c | 16 +++ tests/weston-test-client-helper.h | 12 ++ 12 files changed, 690 insertions(+), 19 deletions(-) create mode 100644 tests/input-timestamps-helper.c create mode 100644 tests/input-timestamps-helper.h -- 2.14.1 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel