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

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: Moved Read() to .cc file 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
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 // gpu/config/gpu_info.h
5 module gpu.mojom; 6 module gpu.mojom;
6 7
8 import "ui/gfx/geometry/mojo/geometry.mojom";
9
7 // gpu::GPUInfo::GPUDevice 10 // gpu::GPUInfo::GPUDevice
8 struct GpuDevice { 11 struct GpuDevice {
9 uint32 vendor_id; 12 uint32 vendor_id;
10 uint32 device_id; 13 uint32 device_id;
11 bool active; 14 bool active;
12 string vendor_string; 15 string vendor_string;
13 string device_string; 16 string device_string;
14 }; 17 };
15 18
19 // gpu::CollectInfoResult
16 enum CollectInfoResult { 20 enum CollectInfoResult {
17 kCollectInfoNone = 0, 21 kCollectInfoNone = 0,
18 kCollectInfoSuccess = 1, 22 kCollectInfoSuccess = 1,
19 kCollectInfoNonFatalFailure = 2, 23 kCollectInfoNonFatalFailure = 2,
20 kCollectInfoFatalFailure = 3 24 kCollectInfoFatalFailure = 3
21 }; 25 };
26
27 // gpu::VideoCodecProfile
28 enum VideoCodecProfile {
29 VIDEO_CODEC_PROFILE_UNKNOWN = -1,
dcheng 2016/07/28 02:09:38 Nit: Just call this UNKNOWN, mojo defaults to gene
Alex Z. 2016/07/28 19:40:43 The long name is to keep the consistency with the
30 H264PROFILE_BASELINE = 0,
dcheng 2016/07/28 02:09:38 Similar I'd just omit PROFILE from these names.
Alex Z. 2016/07/28 19:40:43 Same as above.
31 H264PROFILE_MAIN,
32 H264PROFILE_EXTENDED,
33 H264PROFILE_HIGH,
34 H264PROFILE_HIGH10PROFILE,
35 H264PROFILE_HIGH422PROFILE,
36 H264PROFILE_HIGH444PREDICTIVEPROFILE,
37 H264PROFILE_SCALABLEBASELINE,
38 H264PROFILE_SCALABLEHIGH,
39 H264PROFILE_STEREOHIGH,
40 H264PROFILE_MULTIVIEWHIGH,
41 VP8PROFILE_ANY,
42 VP9PROFILE_PROFILE0,
43 VP9PROFILE_PROFILE1,
44 VP9PROFILE_PROFILE2,
45 VP9PROFILE_PROFILE3,
46 HEVCPROFILE_MAIN,
47 HEVCPROFILE_MAIN10,
48 HEVCPROFILE_MAIN_STILL_PICTURE,
49 };
50
51 // gpu::VideoDecodeAcceleratorSupportedProfile
52 struct VideoDecodeAcceleratorSupportedProfile {
53 VideoCodecProfile profile;
54 gfx.mojom.Size max_resolution;
55 gfx.mojom.Size min_resolution;
56 bool encrypted_only;
57 };
58
59 // gpu::VideoDecodeAcceleratorCapabilities
60 struct VideoDecodeAcceleratorCapabilities {
61 uint32 flags;
62 };
63
64 // gpu::VideoEncodeAcceleratorSupportedProfile
65 struct VideoEncodeAcceleratorSupportedProfile {
66 VideoCodecProfile profile;
67 gfx.mojom.Size max_resolution;
68 uint32 max_framerate_numerator;
69 uint32 max_framerate_denominator;
70 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698