diff options
author | Simon Ser <contact@emersion.fr> | 2020-04-27 12:45:21 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-28 21:45:14 +0200 |
commit | 06f4c3945dfcdb108e480961d9d76cdb75c9912c (patch) | |
tree | 4b6bfcd7f3665819f7bd29e7989245e836b83608 /include/wlr/render/interface.h | |
parent | 21397e2b4a86443dde31ba36cf4f6b7fbb1b662c (diff) |
render/texture: add width and height fields
Instead of requiring compositors to call wlr_texture_get_size each time
they want to access the texture's size, expose this information as
wlr_texture fields.
Diffstat (limited to 'include/wlr/render/interface.h')
-rw-r--r-- | include/wlr/render/interface.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 6936afa3..48ef4286 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -70,7 +70,6 @@ void wlr_renderer_init(struct wlr_renderer *renderer, const struct wlr_renderer_impl *impl); struct wlr_texture_impl { - void (*get_size)(struct wlr_texture *texture, int *width, int *height); bool (*is_opaque)(struct wlr_texture *texture); bool (*write_pixels)(struct wlr_texture *texture, uint32_t stride, uint32_t width, uint32_t height, @@ -82,6 +81,6 @@ struct wlr_texture_impl { }; void wlr_texture_init(struct wlr_texture *texture, - const struct wlr_texture_impl *impl); + const struct wlr_texture_impl *impl, uint32_t width, uint32_t height); #endif |