Class ZwpLinuxBufferParamsV1Resource
- All Implemented Interfaces:
WaylandObject
This temporary object is a collection of dmabufs and other parameters that together form a single logical buffer. The temporary object may eventually create one wl_buffer unless cancelled by destroying it before requesting 'create'.
Single-planar formats only require one dmabuf, however multi-planar formats may require more than one dmabuf. For all formats, an 'add' request must be called once per plane (even if the underlying dmabuf fd is identical).
You must use consecutive plane indices ('plane_idx' argument for 'add') from zero to the number of planes used by the drm_fourcc format code. All planes required by the format must be given exactly once, but can be given in any order. Each plane index can be set only once.
-
Field Summary
FieldsFields inherited from class org.freedesktop.wayland.server.Resource
wlResourcePtr
-
Constructor Summary
ConstructorsConstructorDescriptionZwpLinuxBufferParamsV1Resource
(Client client, int version, int id, ZwpLinuxBufferParamsV1Requests implementation) -
Method Summary
Methods inherited from class org.freedesktop.wayland.server.Resource
addDestroyListener, destroy, equals, getClient, getId, getImplementation, getPointer, getVersion, hashCode, postError, postEvent, postEvent, register, unregister
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
ZwpLinuxBufferParamsV1Resource
public ZwpLinuxBufferParamsV1Resource(Client client, int version, int id, ZwpLinuxBufferParamsV1Requests implementation) -
ZwpLinuxBufferParamsV1Resource
-
-
Method Details
-
created
public void created(int buffer) buffer creation succeededThis event indicates that the attempted buffer creation was successful. It provides the new wl_buffer referencing the dmabuf(s).
Upon receiving this event, the client should destroy the zwp_linux_buffer_params_v1 object.
- Parameters:
buffer
- the newly created wl_buffer
-
failed
public void failed()buffer creation failedThis event indicates that the attempted buffer creation has failed. It usually means that one of the dmabuf constraints has not been fulfilled.
Upon receiving this event, the client should destroy the zwp_linux_buffer_params_v1 object.
-