Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: gpu/ipc/common/gpu_info.mojom

Issue 2220093002: GpuInfo mojom struct and struct traits and unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a typo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/common/dx_diag_node.mojom ('k') | gpu/ipc/common/gpu_info.typemap » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // gpu/config/gpu_info.h 5 // gpu/config/gpu_info.h
6 module gpu.mojom; 6 module gpu.mojom;
7 7
8 import "gpu/ipc/common/dx_diag_node.mojom";
9 import "mojo/common/common_custom_types.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 10 import "ui/gfx/geometry/mojo/geometry.mojom";
9 11
10 // gpu::GPUInfo::GPUDevice 12 // gpu::GPUInfo::GPUDevice
11 struct GpuDevice { 13 struct GpuDevice {
12 uint32 vendor_id; 14 uint32 vendor_id;
13 uint32 device_id; 15 uint32 device_id;
14 bool active; 16 bool active;
15 string vendor_string; 17 string vendor_string;
16 string device_string; 18 string device_string;
17 }; 19 };
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 uint32 flags; 63 uint32 flags;
62 }; 64 };
63 65
64 // gpu::VideoEncodeAcceleratorSupportedProfile 66 // gpu::VideoEncodeAcceleratorSupportedProfile
65 struct VideoEncodeAcceleratorSupportedProfile { 67 struct VideoEncodeAcceleratorSupportedProfile {
66 VideoCodecProfile profile; 68 VideoCodecProfile profile;
67 gfx.mojom.Size max_resolution; 69 gfx.mojom.Size max_resolution;
68 uint32 max_framerate_numerator; 70 uint32 max_framerate_numerator;
69 uint32 max_framerate_denominator; 71 uint32 max_framerate_denominator;
70 }; 72 };
73
74 // Corresponds to |gpu::GPUInfo| in gpu/config/gpu_info.h
75 struct GpuInfo {
76 mojo.common.mojom.TimeDelta initialization_time;
77 bool optimus;
78 bool amd_switchable;
79 bool lenovo_dcute;
80 mojo.common.mojom.Version display_link_version;
81 GpuDevice gpu;
82 array<GpuDevice> secondary_gpus;
83 uint64 adapter_luid;
84 string driver_vendor;
85 string driver_version;
86 string driver_date;
87 string pixel_shader_version;
88 string vertex_shader_version;
89 string max_msaa_samples;
90 string machine_model_name;
91 string machine_model_version;
92 string gl_version;
93 string gl_vendor;
94 string gl_renderer;
95 string gl_extensions;
96 string gl_ws_vendor;
97 string gl_ws_version;
98 string gl_ws_extensions;
99 uint32 gl_reset_notification_strategy;
100 bool can_lose_context;
101 bool software_rendering;
102 bool direct_rendering;
103 bool sandboxed;
104 int32 process_crash_count;
105 bool in_process_gpu;
106 CollectInfoResult basic_info_state;
107 CollectInfoResult context_info_state;
108 CollectInfoResult dx_diagnostics_info_state;
109 DxDiagNode? dx_diagnostics;
110 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities;
111 array<VideoEncodeAcceleratorSupportedProfile>
112 video_encode_accelerator_supported_profiles;
113 bool jpeg_decode_accelerator_supported;
114 };
OLDNEW
« no previous file with comments | « gpu/ipc/common/dx_diag_node.mojom ('k') | gpu/ipc/common/gpu_info.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698