diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-04-28 10:09:33 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-28 20:55:57 +0200 |
commit | 144189674edbf908d72467cd497a0250b3d80b8b (patch) | |
tree | c71455402e227053381aaed7038ba3a477a6079b /backend/headless | |
parent | 6ec652785587b9027512f1a1bc141c5ed27c3ddb (diff) |
backend: introduce backend_get_buffer_caps
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/backend.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c index 1ca1c183..7f1e6aa4 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -13,6 +13,7 @@ #include "render/drm_format_set.h" #include "render/gbm_allocator.h" #include "render/wlr_renderer.h" +#include "types/wlr_buffer.h" #include "util/signal.h" struct wlr_headless_backend *headless_backend_from_backend( @@ -92,11 +93,18 @@ static int backend_get_drm_fd(struct wlr_backend *wlr_backend) { return backend->drm_fd; } +static uint32_t backend_get_buffer_caps(struct wlr_backend *wlr_backend) { + return WLR_BUFFER_CAP_DATA_PTR + | WLR_BUFFER_CAP_DMABUF + | WLR_BUFFER_CAP_SHM; +} + static const struct wlr_backend_impl backend_impl = { .start = backend_start, .destroy = backend_destroy, .get_renderer = backend_get_renderer, .get_drm_fd = backend_get_drm_fd, + .get_buffer_caps = backend_get_buffer_caps, }; static void handle_display_destroy(struct wl_listener *listener, void *data) { |