mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-21 01:40:48 -05:00
backend/wayland: add color-management-v1 support
This commit is contained in:
parent
ab5d3148b9
commit
a981089065
4 changed files with 235 additions and 11 deletions
|
|
@ -53,7 +53,14 @@ struct wlr_wl_backend {
|
|||
struct xdg_activation_v1 *activation_v1;
|
||||
struct wl_subcompositor *subcompositor;
|
||||
struct wp_viewporter *viewporter;
|
||||
struct wp_color_manager_v1 *color_manager_v1;
|
||||
char *drm_render_name;
|
||||
uint32_t supported_tfs; // bitfield of enum wlr_color_transfer_function
|
||||
uint32_t supported_primaries; // bitfield of enum wlr_color_named_primaries
|
||||
struct {
|
||||
bool parametric;
|
||||
bool set_mastering_display_primaries;
|
||||
} color_manager_v1_features;
|
||||
};
|
||||
|
||||
struct wlr_wl_buffer {
|
||||
|
|
@ -90,6 +97,7 @@ struct wlr_wl_output_layer {
|
|||
struct wl_surface *surface;
|
||||
struct wl_subsurface *subsurface;
|
||||
struct wp_viewport *viewport;
|
||||
struct wp_color_management_surface_v1 *color_management_surface_v1;
|
||||
bool mapped;
|
||||
};
|
||||
|
||||
|
|
@ -106,6 +114,8 @@ struct wlr_wl_output {
|
|||
struct xdg_toplevel *xdg_toplevel;
|
||||
struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1;
|
||||
struct wp_linux_drm_syncobj_surface_v1 *drm_syncobj_surface_v1;
|
||||
struct wp_color_management_surface_v1 *color_management_surface_v1;
|
||||
struct wp_image_description_v1 *img_desc;
|
||||
struct wl_list presentation_feedbacks;
|
||||
|
||||
char *title;
|
||||
|
|
@ -129,6 +139,7 @@ struct wlr_wl_output {
|
|||
struct {
|
||||
struct wlr_wl_pointer *pointer;
|
||||
struct wl_surface *surface;
|
||||
struct wp_color_management_surface_v1 *color_management_surface_v1;
|
||||
int32_t hotspot_x, hotspot_y;
|
||||
} cursor;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue