mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
output: fix attach_buffer semantics
This commit is contained in:
parent
1d222309b8
commit
afe7b207d5
4 changed files with 52 additions and 40 deletions
|
|
@ -148,6 +148,8 @@ struct wlr_drm_connector {
|
|||
bool pageflip_pending;
|
||||
struct wl_event_source *retry_pageflip;
|
||||
struct wl_list link;
|
||||
|
||||
struct wlr_dmabuf_attributes pending_dmabuf;
|
||||
};
|
||||
|
||||
struct wlr_drm_backend *get_drm_backend_from_backend(
|
||||
|
|
|
|||
|
|
@ -52,12 +52,21 @@ enum wlr_output_state_field {
|
|||
WLR_OUTPUT_STATE_DAMAGE = 1 << 1,
|
||||
};
|
||||
|
||||
enum wlr_output_state_buffer_type {
|
||||
WLR_OUTPUT_STATE_BUFFER_RENDER,
|
||||
WLR_OUTPUT_STATE_BUFFER_SCANOUT,
|
||||
};
|
||||
|
||||
/**
|
||||
* Holds the double-buffered output state.
|
||||
*/
|
||||
struct wlr_output_state {
|
||||
uint32_t committed; // enum wlr_output_state_field
|
||||
pixman_region32_t damage; // output-buffer-local coordinates
|
||||
|
||||
// only valid if WLR_OUTPUT_STATE_BUFFER
|
||||
enum wlr_output_state_buffer_type buffer_type;
|
||||
struct wlr_buffer *buffer; // if WLR_OUTPUT_STATE_BUFFER_SCANOUT
|
||||
};
|
||||
|
||||
struct wlr_output_impl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue