public class WlShmProxy extends Proxy<WlShmEvents>
A global singleton object that provides support for shared memory.
Clients can create wl_shm_pool objects using the create_pool request.
At connection setup time, the wl_shm object emits one or more format events to inform clients about the valid pixel formats that can be used for buffers.
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERFACE_NAME |
| Constructor and Description |
|---|
WlShmProxy(long pointer) |
WlShmProxy(long pointer,
WlShmEvents implementation,
int version) |
| Modifier and Type | Method and Description |
|---|---|
WlShmPoolProxy |
createPool(WlShmPoolEvents implementation,
int fd,
int size)
create a shm pool
|
destroy, equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueuepublic static final String INTERFACE_NAME
public WlShmProxy(long pointer,
WlShmEvents implementation,
int version)
public WlShmProxy(long pointer)
public WlShmPoolProxy createPool(WlShmPoolEvents implementation, int fd, int size)
Create 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.
implementation - A protocol event listener for the newly created proxy.fd - file descriptor for the poolsize - pool size, in bytesCopyright © 2016. All rights reserved.