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

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

Issue 2147693002: Struct traits used by GpuInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed according to comments Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 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 module gpu.mojom; 5 module gpu.mojom;
6 6
7 import "ui/gfx/geometry/mojo/geometry.mojom";
8
7 // gpu::GPUInfo::GPUDevice 9 // gpu::GPUInfo::GPUDevice
8 struct GpuDevice { 10 struct GpuDevice {
9 uint32 vendor_id; 11 uint32 vendor_id;
10 uint32 device_id; 12 uint32 device_id;
11 bool active; 13 bool active;
12 string vendor_string; 14 string vendor_string;
13 string device_string; 15 string device_string;
14 }; 16 };
15 17
16 enum CollectInfoResult { 18 enum CollectInfoResult {
17 kCollectInfoNone = 0, 19 kCollectInfoNone = 0,
18 kCollectInfoSuccess = 1, 20 kCollectInfoSuccess = 1,
19 kCollectInfoNonFatalFailure = 2, 21 kCollectInfoNonFatalFailure = 2,
20 kCollectInfoFatalFailure = 3 22 kCollectInfoFatalFailure = 3
21 }; 23 };
24
25 // This should always match gpu::VideoCodecProfile
26 enum VideoCodecProfile {
27 VIDEO_CODEC_PROFILE_UNKNOWN = -1,
28 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN,
Fady Samuel 2016/07/18 15:59:39 Let's get rid of min and max. We don't need them i
Alex Z. 2016/07/19 15:13:19 Done.
29 H264PROFILE_BASELINE = 0,
30 H264PROFILE_MAIN,
31 H264PROFILE_EXTENDED,
32 H264PROFILE_HIGH,
33 H264PROFILE_HIGH10PROFILE,
34 H264PROFILE_HIGH422PROFILE,
35 H264PROFILE_HIGH444PREDICTIVEPROFILE,
36 H264PROFILE_SCALABLEBASELINE,
37 H264PROFILE_SCALABLEHIGH,
38 H264PROFILE_STEREOHIGH,
39 H264PROFILE_MULTIVIEWHIGH,
40 VP8PROFILE_ANY,
41 VP9PROFILE_PROFILE0,
42 VP9PROFILE_PROFILE1,
43 VP9PROFILE_PROFILE2,
44 VP9PROFILE_PROFILE3,
45 HEVCPROFILE_MAIN,
46 HEVCPROFILE_MAIN10,
47 HEVCPROFILE_MAIN_STILL_PICTURE,
48 VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE,
49 };
50
51 struct VideoDecodeAcceleratorSupportedProfile {
Fady Samuel 2016/07/18 15:59:39 nit: comment with path to C++ type.
Alex Z. 2016/07/19 15:13:19 Done.
52 VideoCodecProfile profile;
53 gfx.mojom.Size max_resolution;
54 gfx.mojom.Size min_resolution;
55 bool encrypted_only;
56 };
57
58 struct VideoDecodeAcceleratorCapabilities {
Fady Samuel 2016/07/18 15:59:39 nit: comment with path to C++ type.
Alex Z. 2016/07/19 15:13:19 Done.
59 uint32 flags;
60 };
61
62 struct VideoEncodeAcceleratorSupportedProfile {
Fady Samuel 2016/07/18 15:59:39 nit: comment with path to C++ type.
Alex Z. 2016/07/19 15:13:19 Done.
63 VideoCodecProfile profile;
64 gfx.mojom.Size max_resolution;
65 uint32 max_framerate_numerator;
66 uint32 max_framerate_denominator;
67 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698