color_representation_v1: add helper to create global from renderer

This commit is contained in:
Simon Ser 2025-10-28 21:09:20 +01:00 committed by Simon Zeni
parent 87c3cb5c52
commit fa7b66bcf4
2 changed files with 57 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include <wlr/render/color.h>
struct wlr_surface;
struct wlr_renderer;
// Supported coefficients and range are always paired together
struct wlr_color_representation_v1_coeffs_and_range {
@ -55,6 +56,9 @@ struct wlr_color_representation_manager_v1 *wlr_color_representation_manager_v1_
struct wl_display *display, uint32_t version,
const struct wlr_color_representation_v1_options *options);
struct wlr_color_representation_manager_v1 *wlr_color_representation_manager_v1_create_with_renderer(
struct wl_display *display, uint32_t version, struct wlr_renderer *renderer);
// This is all the color-representation state which can be attached to a
// surface, double-buffered and made current on commit
struct wlr_color_representation_v1_surface_state {