1
0
Fork 0

wayland: Implement the color management protocol v4

To expose it, run mutter/gnome-shell with `--debug-control` and then call
`./tools/debug-control.py --enable ColorManagementProtocol`, or set
`MUTTER_DEBUG_COLOR_MANAGEMENT_PROTOCOL=1`.

Co-authored-by: Joan Torres <joan.torres@suse.com>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3893>
This commit is contained in:
Sebastian Wick 2024-07-18 14:32:29 +02:00 committed by Marge Bot
parent 7e2627f5d8
commit 2341346c90
6 changed files with 2889 additions and 0 deletions

View file

@ -602,6 +602,8 @@ if have_wayland
'wayland/meta-wayland.c',
'wayland/meta-wayland-client.c',
'wayland/meta-wayland-client-private.h',
'wayland/meta-wayland-color-management.c',
'wayland/meta-wayland-color-management.h',
'wayland/meta-wayland-cursor-surface.c',
'wayland/meta-wayland-cursor-surface.h',
'wayland/meta-wayland-data-device.c',
@ -1103,6 +1105,7 @@ if have_wayland
['xdg-shell', 'stable', ],
['xwayland-keyboard-grab', 'unstable', 'v1', ],
['linux-drm-syncobj-v1', 'private', ],
['color-management-v1', 'private', ],
]
if have_wayland_eglstream
wayland_eglstream_protocols_dir = wayland_eglstream_protocols_dep.get_variable('pkgdatadir')

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,25 @@
/*
* Copyright (C) 2024 SUSE Software Solutions Germany GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*
* Written by:
* Joan Torres <joan.torres@suse.com>
*/
#pragma once
#include "wayland/meta-wayland-types.h"
void meta_wayland_init_color_management (MetaWaylandCompositor *compositor);

View file

@ -57,5 +57,6 @@
#define META_WP_SINGLE_PIXEL_BUFFER_V1_VERSION 1
#define META_MUTTER_X11_INTEROP_VERSION 1
#define META_WP_FRACTIONAL_SCALE_VERSION 1
#define META_XX_COLOR_MANAGEMENT_VERSION 1
#define META_XDG_DIALOG_VERSION 1
#define META_WP_DRM_LEASE_DEVICE_V1_VERSION 1

View file

@ -39,6 +39,7 @@
#include "core/meta-context-private.h"
#include "wayland/meta-wayland-activation.h"
#include "wayland/meta-wayland-buffer.h"
#include "wayland/meta-wayland-color-management.h"
#include "wayland/meta-wayland-data-device.h"
#include "wayland/meta-wayland-dma-buf.h"
#include "wayland/meta-wayland-egl-stream.h"
@ -890,6 +891,7 @@ meta_wayland_compositor_new (MetaContext *context)
meta_wayland_idle_inhibit_init (compositor);
meta_wayland_drm_syncobj_init (compositor);
meta_wayland_init_xdg_wm_dialog (compositor);
meta_wayland_init_color_management (compositor);
#ifdef HAVE_NATIVE_BACKEND
meta_wayland_drm_lease_manager_init (compositor);

File diff suppressed because it is too large Load diff