diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-09 15:58:41 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-09 17:31:38 -0400 |
commit | 8306f46dfb93bd8d791803897927f43e0888e2bd (patch) | |
tree | 6ba4a3f4e6d7ecfa13ef0193fbc1b741c418feb1 /include | |
parent | 87fe13a9faa6cb3bb243426f03812f2011f6d2ec (diff) |
implement surface frame
The surface frame callback lets a window know when it is a good time to show the
next frame if it is animating. In particular, this callback is used by
weston-simple-shm to throttle drawing.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_surface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 88a9a4d8..2bfd5d36 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -3,6 +3,11 @@ #include <wayland-server.h> +struct wlr_frame_callback { + struct wl_resource *resource; + struct wl_list link; +}; + struct wlr_surface { struct wl_resource *pending_buffer; bool pending_attached; @@ -16,6 +21,8 @@ struct wlr_surface { struct wl_signal destroy; struct wl_signal commit; } signals; + + struct wl_list frame_callback_list; // wl_surface.frame }; struct wlr_renderer; |