Package org.freedesktop.wayland.server
Interface WlShmRequests
- All Known Subinterfaces:
WlShmRequestsV2
public interface WlShmRequests
shared memory support
A singleton global object that provides support for shared memory.
Clients can create wl_shm_pool objects using the create_pool request.
On binding the wl_shm object one or more format events are emitted to inform clients about the valid pixel formats that can be used for buffers.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
createPool
(WlShmResource requester, int id, int fd, int size) create a shm pool
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
createPool
create a shm poolCreate a new wl_shm_pool object.
The pool can be used to create shared memory based buffer objects. The server will mmap size bytes of the passed file descriptor, to use as backing memory for the pool.
- Parameters:
requester
- The protocol object that made the request.id
- pool to createfd
- file descriptor for the poolsize
- pool size, in bytes
-