diff options
author | Roman Gilg <subdiff@gmail.com> | 2018-03-13 16:00:54 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-03-28 14:36:55 -0400 |
commit | 86df366973de1c10da5fbdc57d1ff12b681c321f (patch) | |
tree | 47fd7e780bda847407af73cf00e0a78680bed349 /hw/xwayland/xwayland.h | |
parent | 0fb2cca193e60b731c8e75a2a7e795477fb5fd8f (diff) |
xwayland: Add fallback timer for msc counting
When the compositor is not sending frame callbacks while we still wait
on buffer release events fake a continuous msc counter with a timer.
Having this timer is a prerequisite for queuing events.
Signed-off-by: Roman Gilg <subdiff@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xwayland/xwayland.h')
-rw-r--r-- | hw/xwayland/xwayland.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland.h b/hw/xwayland/xwayland.h index dd7d1c685..e6cec18b8 100644 --- a/hw/xwayland/xwayland.h +++ b/hw/xwayland/xwayland.h @@ -135,6 +135,9 @@ struct xwl_window { uint64_t present_msc; uint64_t present_ust; + OsTimerPtr present_timer; + Bool present_timer_firing; + struct wl_callback *present_frame_callback; struct wl_callback *present_sync_callback; struct xorg_list present_release_queue; |