1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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";
20 struct D3D11DeviceStatus
23 bool textureSharingWorks;
24 uint32_t featureLevel;
25 DxgiAdapterDesc adapter;
26 int32_t sequenceNumber;
27 VideoFormatOptionSet formatOptions;
32 FeatureStatus hwCompositing;
33 FeatureStatus d3d11Compositing;
34 FeatureStatus oglCompositing;
35 FeatureStatus useD2D1;
37 FeatureStatus d3d11HwAngle;
40 struct ContentDeviceData
43 D3D11DeviceStatus d3d11;
44 uint8_t[] cmsOutputProfileData;
47 // Represents the state of a feature that has failed to initialize.
57 // If a feature state has changed from Enabled -> Failure, these will be non-
59 FeatureFailure? d3d11Compositing;
60 FeatureFailure? oglCompositing;
61 D3D11DeviceStatus? gpuDevice;
62 FeatureFailure? webGPU;
82 struct GfxInfoFeatureStatus
90 } // namespace mozilla