]> git.eshelyaron.com Git - emacs.git/commit
Add preparations for animation frame timing support
authorPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 03:38:27 +0000 (11:38 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 03:38:27 +0000 (11:38 +0800)
commit9a9634dc725278a6a676fa4590f53543cada34b2
tree942188dce1a65fe30371541700b0d02c48fc80ae
parentfdbe3362c5a72be7d4c930a614fe5853bf6eff1f
Add preparations for animation frame timing support

* src/xterm.c (x_sync_get_monotonic_time)
(x_sync_current_monotonic_time, x_sync_note_frame_times): New
functions.
(x_sync_wait_for_frame_drawn_event, x_sync_update_begin)
(x_sync_handle_frame_drawn): Note frame times.
(x_display_set_last_user_time): Check if the X server time is
probably the same as CLOCK_MONOTONIC.

* src/xterm.h (struct x_display_info, struct x_output): New
fields and flags for clock handling and frame times.
src/xterm.c
src/xterm.h