2018-07-10 04:36:24 -04:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2001 Havoc Pennington
|
|
|
|
* Copyright (C) 2003 Rob Adams
|
|
|
|
* Copyright (C) 2004-2006 Elijah Newren
|
|
|
|
* Copyright (C) 2013-2018 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2023-07-21 09:37:20 -04:00
|
|
|
#pragma once
|
2018-07-10 04:36:24 -04:00
|
|
|
|
2021-12-03 11:34:34 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2020-05-27 03:29:04 -04:00
|
|
|
typedef struct _MetaBackend MetaBackend;
|
|
|
|
|
2021-11-29 12:17:26 -05:00
|
|
|
typedef struct _MetaColorDevice MetaColorDevice;
|
2021-10-25 04:50:02 -04:00
|
|
|
typedef struct _MetaColorManager MetaColorManager;
|
2021-11-29 14:44:56 -05:00
|
|
|
typedef struct _MetaColorProfile MetaColorProfile;
|
|
|
|
typedef struct _MetaColorStore MetaColorStore;
|
2021-10-25 04:50:02 -04:00
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
typedef struct _MetaMonitorManager MetaMonitorManager;
|
|
|
|
|
|
|
|
typedef struct _MetaMonitorConfigManager MetaMonitorConfigManager;
|
|
|
|
typedef struct _MetaMonitorConfigStore MetaMonitorConfigStore;
|
|
|
|
typedef struct _MetaMonitorsConfig MetaMonitorsConfig;
|
|
|
|
|
2022-01-17 05:45:53 -05:00
|
|
|
typedef enum _MetaMonitorsConfigFlag MetaMonitorsConfigFlag;
|
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
typedef struct _MetaMonitor MetaMonitor;
|
|
|
|
typedef struct _MetaMonitorNormal MetaMonitorNormal;
|
|
|
|
typedef struct _MetaMonitorTiled MetaMonitorTiled;
|
|
|
|
typedef struct _MetaMonitorSpec MetaMonitorSpec;
|
|
|
|
typedef struct _MetaLogicalMonitor MetaLogicalMonitor;
|
|
|
|
|
2019-01-05 08:15:23 -05:00
|
|
|
typedef enum _MetaMonitorTransform MetaMonitorTransform;
|
2018-07-10 04:36:24 -04:00
|
|
|
|
|
|
|
typedef struct _MetaMonitorMode MetaMonitorMode;
|
|
|
|
|
|
|
|
typedef struct _MetaGpu MetaGpu;
|
|
|
|
|
|
|
|
typedef struct _MetaCrtc MetaCrtc;
|
|
|
|
typedef struct _MetaOutput MetaOutput;
|
|
|
|
typedef struct _MetaCrtcMode MetaCrtcMode;
|
2020-02-25 14:30:46 -05:00
|
|
|
typedef struct _MetaCrtcAssignment MetaCrtcAssignment;
|
|
|
|
typedef struct _MetaOutputAssignment MetaOutputAssignment;
|
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
typedef struct _MetaTileInfo MetaTileInfo;
|
|
|
|
|
|
|
|
typedef struct _MetaRenderer MetaRenderer;
|
|
|
|
typedef struct _MetaRendererView MetaRendererView;
|
|
|
|
|
2020-04-21 09:44:32 -04:00
|
|
|
typedef struct _MetaRemoteDesktop MetaRemoteDesktop;
|
2023-08-29 14:22:10 -04:00
|
|
|
typedef struct _MetaRemoteDesktopSession MetaRemoteDesktopSession;
|
2018-12-12 05:35:58 -05:00
|
|
|
typedef struct _MetaScreenCast MetaScreenCast;
|
|
|
|
typedef struct _MetaScreenCastSession MetaScreenCastSession;
|
|
|
|
typedef struct _MetaScreenCastStream MetaScreenCastStream;
|
|
|
|
|
Introduce virtual monitors
Virtual monitors are monitors that isn't backed by any monitor like
hardware. It would typically be backed by e.g. a remote desktop service,
or a network display.
It is currently only supported by the native backend, and whether the
X11 backend will ever see virtual monitors is an open question. This
rest of this commit message describes how it works under the native
backend.
Each virutal monitor consists of virtualized mode setting components:
* A virtual CRTC mode (MetaCrtcModeVirtual)
* A virtual CRTC (MetaCrtcVirtual)
* A virtual connector (MetaOutputVirtual)
In difference to the corresponding mode setting objects that represents
KMS objects, the virtual ones isn't directly tied to a MetaGpu, other
than the CoglFramebuffer being part of the GPU context of the primary
GPU, which is the case for all monitors no matter what GPU they are
connected to. Part of the reason for this is that a MetaGpu in practice
represents a mode setting device, and its CRTCs and outputs, are all
backed by real mode setting objects, while a virtual monitor is only
backed by a framebuffer that is tied to the primary GPU. Maybe this will
be reevaluated in the future, but since a virtual monitor is not tied to
any GPU currently, so is the case for the virtual mode setting objects.
The native rendering backend, including the cursor renderer, is adapted
to handle the situation where a CRTC does not have a GPU associated with
it; this in practice means that it e.g. will not try to upload HW cursor
buffers when the cursor is only on a virtual monitor. The same applies
to the native renderer, which is made to avoid creating
MetaOnscreenNative for views that are backed by virtual CRTCs, as well
as to avoid trying to mode set on such views.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
2021-01-26 10:49:28 -05:00
|
|
|
typedef struct _MetaVirtualMonitor MetaVirtualMonitor;
|
|
|
|
typedef struct _MetaVirtualMonitorInfo MetaVirtualMonitorInfo;
|
2021-12-01 17:24:33 -05:00
|
|
|
typedef struct _MetaVirtualModeInfo MetaVirtualModeInfo;
|
Introduce virtual monitors
Virtual monitors are monitors that isn't backed by any monitor like
hardware. It would typically be backed by e.g. a remote desktop service,
or a network display.
It is currently only supported by the native backend, and whether the
X11 backend will ever see virtual monitors is an open question. This
rest of this commit message describes how it works under the native
backend.
Each virutal monitor consists of virtualized mode setting components:
* A virtual CRTC mode (MetaCrtcModeVirtual)
* A virtual CRTC (MetaCrtcVirtual)
* A virtual connector (MetaOutputVirtual)
In difference to the corresponding mode setting objects that represents
KMS objects, the virtual ones isn't directly tied to a MetaGpu, other
than the CoglFramebuffer being part of the GPU context of the primary
GPU, which is the case for all monitors no matter what GPU they are
connected to. Part of the reason for this is that a MetaGpu in practice
represents a mode setting device, and its CRTCs and outputs, are all
backed by real mode setting objects, while a virtual monitor is only
backed by a framebuffer that is tied to the primary GPU. Maybe this will
be reevaluated in the future, but since a virtual monitor is not tied to
any GPU currently, so is the case for the virtual mode setting objects.
The native rendering backend, including the cursor renderer, is adapted
to handle the situation where a CRTC does not have a GPU associated with
it; this in practice means that it e.g. will not try to upload HW cursor
buffers when the cursor is only on a virtual monitor. The same applies
to the native renderer, which is made to avoid creating
MetaOnscreenNative for views that are backed by virtual CRTCs, as well
as to avoid trying to mode set on such views.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
2021-01-26 10:49:28 -05:00
|
|
|
|
2022-03-14 17:45:34 -04:00
|
|
|
typedef struct _MetaBarrier MetaBarrier;
|
|
|
|
typedef struct _MetaBarrierImpl MetaBarrierImpl;
|
|
|
|
|
2021-04-19 09:22:57 -04:00
|
|
|
typedef struct _MetaIdleManager MetaIdleManager;
|
|
|
|
|
2022-03-10 18:20:27 -05:00
|
|
|
typedef struct _MetaDbusSession MetaDbusSession;
|
|
|
|
typedef struct _MetaDbusSessionManager MetaDbusSessionManager;
|
|
|
|
typedef struct _MetaDbusSessionWatcher MetaDbusSessionWatcher;
|
|
|
|
|
2020-10-05 06:13:07 -04:00
|
|
|
#ifdef HAVE_REMOTE_DESKTOP
|
|
|
|
typedef struct _MetaRemoteDesktop MetaRemoteDesktop;
|
|
|
|
#endif
|
|
|
|
|
2021-12-03 11:34:34 -05:00
|
|
|
typedef struct _MetaGammaLut
|
|
|
|
{
|
|
|
|
uint16_t *red;
|
|
|
|
uint16_t *green;
|
|
|
|
uint16_t *blue;
|
|
|
|
size_t size;
|
|
|
|
} MetaGammaLut;
|
|
|
|
|
2022-04-13 05:39:56 -04:00
|
|
|
typedef struct _MetaInputCapture MetaInputCapture;
|
|
|
|
typedef struct _MetaInputCaptureSession MetaInputCaptureSession;
|
|
|
|
|
2021-08-16 19:09:59 -04:00
|
|
|
typedef struct _MetaEis MetaEis;
|
|
|
|
typedef struct _MetaEisClient MetaEisClient;
|