Interface ZwpLinuxBufferParamsV1EventsV4
- All Superinterfaces:
ZwpLinuxBufferParamsV1Events
,ZwpLinuxBufferParamsV1EventsV2
,ZwpLinuxBufferParamsV1EventsV3
- All Known Subinterfaces:
ZwpLinuxBufferParamsV1EventsV5
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
created
(ZwpLinuxBufferParamsV1Proxy emitter, WlBufferProxy buffer) buffer creation succeededvoid
failed
(ZwpLinuxBufferParamsV1Proxy emitter) buffer creation failed
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
created
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.
- Specified by:
created
in interfaceZwpLinuxBufferParamsV1Events
- Specified by:
created
in interfaceZwpLinuxBufferParamsV1EventsV2
- Specified by:
created
in interfaceZwpLinuxBufferParamsV1EventsV3
- Parameters:
emitter
- The protocol object that emitted the event.buffer
- the newly created wl_buffer
-
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.
- Specified by:
failed
in interfaceZwpLinuxBufferParamsV1Events
- Specified by:
failed
in interfaceZwpLinuxBufferParamsV1EventsV2
- Specified by:
failed
in interfaceZwpLinuxBufferParamsV1EventsV3
- Parameters:
emitter
- The protocol object that emitted the event.
-