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

Unified 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: VideoEncodeAcceleratorSupportedProfile 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 side-by-side diff with in-line comments
Download patch
Index: gpu/ipc/common/gpu_info.mojom
diff --git a/gpu/ipc/common/gpu_info.mojom b/gpu/ipc/common/gpu_info.mojom
index 26b83872e7671082c154774fad6cea1185265ec6..e99aa0c15e29f7310d6878f559701b5c73c5547a 100644
--- a/gpu/ipc/common/gpu_info.mojom
+++ b/gpu/ipc/common/gpu_info.mojom
@@ -1,9 +1,11 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module gpu.mojom;
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
// gpu::GPUInfo::GPUDevice
struct GpuDevice {
uint32 vendor_id;
@@ -19,3 +21,47 @@ enum CollectInfoResult {
kCollectInfoNonFatalFailure = 2,
kCollectInfoFatalFailure = 3
};
+
+// This should always match gpu::VideoCodecProfile
+enum VideoCodecProfile {
+ VIDEO_CODEC_PROFILE_UNKNOWN = -1,
+ VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN,
+ H264PROFILE_BASELINE = 0,
+ H264PROFILE_MAIN,
+ H264PROFILE_EXTENDED,
+ H264PROFILE_HIGH,
+ H264PROFILE_HIGH10PROFILE,
+ H264PROFILE_HIGH422PROFILE,
+ H264PROFILE_HIGH444PREDICTIVEPROFILE,
+ H264PROFILE_SCALABLEBASELINE,
+ H264PROFILE_SCALABLEHIGH,
+ H264PROFILE_STEREOHIGH,
+ H264PROFILE_MULTIVIEWHIGH,
+ VP8PROFILE_ANY,
+ VP9PROFILE_PROFILE0,
+ VP9PROFILE_PROFILE1,
+ VP9PROFILE_PROFILE2,
+ VP9PROFILE_PROFILE3,
+ HEVCPROFILE_MAIN,
+ HEVCPROFILE_MAIN10,
+ HEVCPROFILE_MAIN_STILL_PICTURE,
+ VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE,
+};
+
+struct VideoDecodeAcceleratorSupportedProfile {
+ VideoCodecProfile profile;
+ gfx.mojom.Size max_resolution;
+ gfx.mojom.Size min_resolution;
+ bool encrypted_only;
+};
+
+struct VideoDecodeAcceleratorCapabilities {
+ uint32 flags;
+};
+
+struct VideoEncodeAcceleratorSupportedProfile {
+ VideoCodecProfile profile;
+ gfx.mojom.Size max_resolution;
+ uint32 max_framerate_numerator;
+ uint32 max_framerate_denominator;
+};

Powered by Google App Engine
This is Rietveld 408576698