Bug 1698238 add a GetUserMediaRequest variant for selectAudioOutput() r=jib,emilio
[gecko.git] / gfx / ipc / GraphicsMessages.ipdlh
blob25813100f3be68c0499644d4b7760f4894353606
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2  * vim: sw=2 ts=8 et :
3  */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 using struct DxgiAdapterDesc from "mozilla/D3DMessageUtils.h";
9 using struct mozilla::null_t from "mozilla/ipc/IPCCore.h";
10 using mozilla::gfx::FeatureStatus from "gfxTelemetry.h";
11 using mozilla::gfx::BackendType from "mozilla/gfx/Types.h";
12 using mozilla::gfx::IntSize from "mozilla/gfx/Point.h";
13 using gfxImageFormat from "mozilla/gfx/Types.h";
14 using mozilla::gfx::D3D11Checks::VideoFormatOption from "mozilla/gfx/D3D11Checks.h";
15 using mozilla::gfx::D3D11Checks::VideoFormatOptionSet from "mozilla/gfx/D3D11Checks.h";
17 namespace mozilla {
18 namespace gfx {
20 struct D3D11DeviceStatus
22   bool isWARP;
23   bool textureSharingWorks;
24   uint32_t featureLevel;
25   DxgiAdapterDesc adapter;
26   int32_t sequenceNumber;
27   VideoFormatOptionSet formatOptions;
30 struct DevicePrefs
32   FeatureStatus hwCompositing;
33   FeatureStatus d3d11Compositing;
34   FeatureStatus oglCompositing;
35   FeatureStatus useD2D1;
36   FeatureStatus webGPU;
37   FeatureStatus d3d11HwAngle;
40 struct ContentDeviceData
42   DevicePrefs prefs;
43   D3D11DeviceStatus d3d11;
44   uint8_t[] cmsOutputProfileData;
47 // Represents the state of a feature that has failed to initialize.
48 struct FeatureFailure
50   FeatureStatus status;
51   nsCString message;
52   nsCString failureId;
55 struct GPUDeviceData
57   // If a feature state has changed from Enabled -> Failure, these will be non-
58   // null.
59   FeatureFailure? d3d11Compositing;
60   FeatureFailure? oglCompositing;
61   D3D11DeviceStatus? gpuDevice;
62   FeatureFailure? webGPU;
65 union GfxVarValue
67   BackendType;
68   bool;
69   gfxImageFormat;
70   IntSize;
71   nsCString;
72   nsString;
73   int32_t;
76 struct GfxVarUpdate
78   uint32_t index;
79   GfxVarValue value;
82 struct GfxInfoFeatureStatus
84     int32_t feature;
85     int32_t status;
86     nsCString failureId;
89 } // namespace gfx
90 } // namespace mozilla