diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-28 23:39:36 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-05-21 22:13:54 +0200 |
commit | 4dae12890f511aed876cc156eb0f28827ed76086 (patch) | |
tree | df5ffce38eccc05c1c800371c1e46198bb1420a2 /include/backend | |
parent | bcabe34a2edc71fef338cd770e851a43b68484cf (diff) | |
download | wlroots-4dae12890f511aed876cc156eb0f28827ed76086.tar.xz |
backend: automatically create allocator
Introduce a new backend_get_allocator function that automatically
creates an allocator for the backend if the backend has a renderer.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/backend/backend.h b/include/backend/backend.h index 8c7440c3..7d88cd79 100644 --- a/include/backend/backend.h +++ b/include/backend/backend.h @@ -10,4 +10,10 @@ */ uint32_t backend_get_buffer_caps(struct wlr_backend *backend); +/** + * Get the backend's allocator. Automatically creates the allocator if + * necessary. + */ +struct wlr_allocator *backend_get_allocator(struct wlr_backend *backend); + #endif |