1// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5module gpu.mojom;
6
7// Corresponds to D3D_FEATURE_LEVEL in <d3dcommon.h>
8enum Direct3DFeatureLevel {
9  k1_0_Core,
10  k9_1,
11  k9_2,
12  k9_3,
13  k10_0,
14  k10_1,
15  k11_0,
16  k11_1,
17  k12_0,
18  k12_1,
19};
20
21// Corresponds to |gpu::HasDisceretGpu| in "gpu/config/device_perf_info.h"
22enum HasDiscreteGpu {
23  kUnknown,
24  kNo,
25  kYes,
26};
27
28// Corresponds to |gpu::DevicePerfInfo| in "gpu/config/device_perf_info.h"
29struct DevicePerfInfo {
30  uint32 total_physical_memory_mb;
31  uint32 total_disk_space_mb;
32  uint32 hardware_concurrency;
33
34  [EnableIf=is_win]
35  uint32 system_commit_limit_mb;
36  [EnableIf=is_win]
37  Direct3DFeatureLevel d3d11_feature_level;
38  [EnableIf=is_win]
39  HasDiscreteGpu has_discrete_gpu;
40};
41