diff options
author | Simon Ser <contact@emersion.fr> | 2020-02-28 15:25:35 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-04-02 15:03:43 +0200 |
commit | 1fa9e0203b4192659a36ddd259c174569bc227d5 (patch) | |
tree | e85fa5803bdc8c90c0877c8f00235f13e59df52a /include | |
parent | 6595db64099fa95ec1b43dd2f137e0de58da9e41 (diff) |
buffer: add width and height
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_buffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index fb308e61..454c5ba0 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -32,6 +32,8 @@ struct wlr_buffer_impl { struct wlr_buffer { const struct wlr_buffer_impl *impl; + int width, height; + bool dropped; size_t n_locks; @@ -47,7 +49,7 @@ struct wlr_buffer { * they should call wlr_buffer_drop. */ void wlr_buffer_init(struct wlr_buffer *buffer, - const struct wlr_buffer_impl *impl); + const struct wlr_buffer_impl *impl, int width, int height); /** * Unreference the buffer. This function should be called by producers when * they are done with the buffer. |