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

Side by Side Diff: gpu/config/gpu_info.h

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch set 6 review comments Created 6 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_CONFIG_GPU_INFO_H_ 5 #ifndef GPU_CONFIG_GPU_INFO_H_
6 #define GPU_CONFIG_GPU_INFO_H_ 6 #define GPU_CONFIG_GPU_INFO_H_
7 7
8 // Provides access to the GPU information for the system 8 // Provides access to the GPU information for the system
9 // on which chrome is currently running. 9 // on which chrome is currently running.
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, 48 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
49 H264PROFILE_SCALABLEBASELINE = 7, 49 H264PROFILE_SCALABLEBASELINE = 7,
50 H264PROFILE_SCALABLEHIGH = 8, 50 H264PROFILE_SCALABLEHIGH = 8,
51 H264PROFILE_STEREOHIGH = 9, 51 H264PROFILE_STEREOHIGH = 9,
52 H264PROFILE_MULTIVIEWHIGH = 10, 52 H264PROFILE_MULTIVIEWHIGH = 10,
53 VP8PROFILE_ANY = 11, 53 VP8PROFILE_ANY = 11,
54 VP9PROFILE_ANY = 12, 54 VP9PROFILE_ANY = 12,
55 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY, 55 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY,
56 }; 56 };
57 57
58 // The minimum and maximum supported resolution (inclusive) of a decoder.
59 struct GPU_EXPORT VideoDecodeAcceleratorSupportedResolution {
60 gfx::Size min;
61 gfx::Size max;
62 };
63
58 // Specification of an encoding profile supported by a hardware encoder. 64 // Specification of an encoding profile supported by a hardware encoder.
59 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { 65 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile {
60 VideoCodecProfile profile; 66 VideoCodecProfile profile;
61 gfx::Size max_resolution; 67 gfx::Size max_resolution;
62 uint32 max_framerate_numerator; 68 uint32 max_framerate_numerator;
63 uint32 max_framerate_denominator; 69 uint32 max_framerate_denominator;
64 }; 70 };
65 71
66 struct GPU_EXPORT GPUInfo { 72 struct GPU_EXPORT GPUInfo {
67 struct GPU_EXPORT GPUDevice { 73 struct GPU_EXPORT GPUDevice {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // if the collection fails or not. 205 // if the collection fails or not.
200 CollectInfoResult basic_info_state; 206 CollectInfoResult basic_info_state;
201 CollectInfoResult context_info_state; 207 CollectInfoResult context_info_state;
202 #if defined(OS_WIN) 208 #if defined(OS_WIN)
203 CollectInfoResult dx_diagnostics_info_state; 209 CollectInfoResult dx_diagnostics_info_state;
204 210
205 // The information returned by the DirectX Diagnostics Tool. 211 // The information returned by the DirectX Diagnostics Tool.
206 DxDiagNode dx_diagnostics; 212 DxDiagNode dx_diagnostics;
207 #endif 213 #endif
208 214
215 VideoDecodeAcceleratorSupportedResolution
216 video_decode_accelerator_supported_resolution;
209 std::vector<VideoEncodeAcceleratorSupportedProfile> 217 std::vector<VideoEncodeAcceleratorSupportedProfile>
210 video_encode_accelerator_supported_profiles; 218 video_encode_accelerator_supported_profiles;
211 // Note: when adding new members, please remember to update EnumerateFields 219 // Note: when adding new members, please remember to update EnumerateFields
212 // in gpu_info.cc. 220 // in gpu_info.cc.
213 221
214 // In conjunction with EnumerateFields, this allows the embedder to 222 // In conjunction with EnumerateFields, this allows the embedder to
215 // enumerate the values in this structure without having to embed 223 // enumerate the values in this structure without having to embed
216 // references to its specific member variables. This simplifies the 224 // references to its specific member variables. This simplifies the
217 // addition of new fields to this type. 225 // addition of new fields to this type.
218 class Enumerator { 226 class Enumerator {
(...skipping 27 matching lines...) Expand all
246 virtual ~Enumerator() {} 254 virtual ~Enumerator() {}
247 }; 255 };
248 256
249 // Outputs the fields in this structure to the provided enumerator. 257 // Outputs the fields in this structure to the provided enumerator.
250 void EnumerateFields(Enumerator* enumerator) const; 258 void EnumerateFields(Enumerator* enumerator) const;
251 }; 259 };
252 260
253 } // namespace gpu 261 } // namespace gpu
254 262
255 #endif // GPU_CONFIG_GPU_INFO_H_ 263 #endif // GPU_CONFIG_GPU_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698