mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
output: add get_primary_formats to interface
This function returns the set of formats the backend can use for the primary buffer. It can be used to allocate a buffer suitable for scan-out.
This commit is contained in:
parent
534615cd55
commit
4d603826c8
1 changed files with 9 additions and 0 deletions
|
@ -94,6 +94,15 @@ struct wlr_output_impl {
|
|||
* size for the cursor may fail.
|
||||
*/
|
||||
void (*get_cursor_size)(struct wlr_output *output, int *width, int *height);
|
||||
/**
|
||||
* Get the list of DMA-BUF formats suitable for the primary buffer,
|
||||
* assuming a buffer with the specified capabilities.
|
||||
*
|
||||
* If unimplemented, the primary buffer has no format constraint. If NULL
|
||||
* is returned, no format is suitable.
|
||||
*/
|
||||
const struct wlr_drm_format_set *(*get_primary_formats)(
|
||||
struct wlr_output *output, uint32_t buffer_caps);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue