mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
24 lines
421 B
C
24 lines
421 B
C
|
|
#ifndef RENDER_ALLOCATOR_UDMABUF_H
|
||
|
|
#define RENDER_ALLOCATOR_UDMABUF_H
|
||
|
|
|
||
|
|
#include <wlr/types/wlr_buffer.h>
|
||
|
|
#include <wlr/render/allocator.h>
|
||
|
|
|
||
|
|
struct wlr_udmabuf_buffer {
|
||
|
|
struct wlr_buffer base;
|
||
|
|
|
||
|
|
size_t size;
|
||
|
|
struct wlr_shm_attributes shm;
|
||
|
|
struct wlr_dmabuf_attributes dmabuf;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct wlr_udmabuf_allocator {
|
||
|
|
struct wlr_allocator base;
|
||
|
|
|
||
|
|
int fd;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct wlr_allocator *wlr_udmabuf_allocator_create(void);
|
||
|
|
|
||
|
|
#endif
|