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

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: fix compile error Created 5 years, 8 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 | « content/renderer/pepper/video_encoder_shim.cc ('k') | gpu/config/gpu_info.cc » ('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 (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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, 47 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
48 H264PROFILE_SCALABLEBASELINE = 7, 48 H264PROFILE_SCALABLEBASELINE = 7,
49 H264PROFILE_SCALABLEHIGH = 8, 49 H264PROFILE_SCALABLEHIGH = 8,
50 H264PROFILE_STEREOHIGH = 9, 50 H264PROFILE_STEREOHIGH = 9,
51 H264PROFILE_MULTIVIEWHIGH = 10, 51 H264PROFILE_MULTIVIEWHIGH = 10,
52 VP8PROFILE_ANY = 11, 52 VP8PROFILE_ANY = 11,
53 VP9PROFILE_ANY = 12, 53 VP9PROFILE_ANY = 12,
54 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY, 54 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY,
55 }; 55 };
56 56
57 // Specification of a decoding profile supported by a hardware decoder.
58 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile {
59 VideoCodecProfile profile;
60 gfx::Size max_resolution;
61 gfx::Size min_resolution;
62 };
63 using VideoDecodeAcceleratorSupportedProfiles =
64 std::vector<VideoDecodeAcceleratorSupportedProfile>;
65
57 // Specification of an encoding profile supported by a hardware encoder. 66 // Specification of an encoding profile supported by a hardware encoder.
58 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { 67 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile {
59 VideoCodecProfile profile; 68 VideoCodecProfile profile;
60 gfx::Size max_resolution; 69 gfx::Size max_resolution;
61 uint32 max_framerate_numerator; 70 uint32 max_framerate_numerator;
62 uint32 max_framerate_denominator; 71 uint32 max_framerate_denominator;
63 }; 72 };
73 using VideoEncodeAcceleratorSupportedProfiles =
74 std::vector<VideoEncodeAcceleratorSupportedProfile>;
64 75
65 struct GPU_EXPORT GPUInfo { 76 struct GPU_EXPORT GPUInfo {
66 struct GPU_EXPORT GPUDevice { 77 struct GPU_EXPORT GPUDevice {
67 GPUDevice(); 78 GPUDevice();
68 ~GPUDevice(); 79 ~GPUDevice();
69 80
70 // The DWORD (uint32) representing the graphics card vendor id. 81 // The DWORD (uint32) representing the graphics card vendor id.
71 uint32 vendor_id; 82 uint32 vendor_id;
72 83
73 // The DWORD (uint32) representing the graphics card device id. 84 // The DWORD (uint32) representing the graphics card device id.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // if the collection fails or not. 210 // if the collection fails or not.
200 CollectInfoResult basic_info_state; 211 CollectInfoResult basic_info_state;
201 CollectInfoResult context_info_state; 212 CollectInfoResult context_info_state;
202 #if defined(OS_WIN) 213 #if defined(OS_WIN)
203 CollectInfoResult dx_diagnostics_info_state; 214 CollectInfoResult dx_diagnostics_info_state;
204 215
205 // The information returned by the DirectX Diagnostics Tool. 216 // The information returned by the DirectX Diagnostics Tool.
206 DxDiagNode dx_diagnostics; 217 DxDiagNode dx_diagnostics;
207 #endif 218 #endif
208 219
209 std::vector<VideoEncodeAcceleratorSupportedProfile> 220 VideoDecodeAcceleratorSupportedProfiles
221 video_decode_accelerator_supported_profiles;
222 VideoEncodeAcceleratorSupportedProfiles
210 video_encode_accelerator_supported_profiles; 223 video_encode_accelerator_supported_profiles;
211 // Note: when adding new members, please remember to update EnumerateFields 224 // Note: when adding new members, please remember to update EnumerateFields
212 // in gpu_info.cc. 225 // in gpu_info.cc.
213 226
214 // In conjunction with EnumerateFields, this allows the embedder to 227 // In conjunction with EnumerateFields, this allows the embedder to
215 // enumerate the values in this structure without having to embed 228 // enumerate the values in this structure without having to embed
216 // references to its specific member variables. This simplifies the 229 // references to its specific member variables. This simplifies the
217 // addition of new fields to this type. 230 // addition of new fields to this type.
218 class Enumerator { 231 class Enumerator {
219 public: 232 public:
220 // The following methods apply to the "current" object. Initially this 233 // The following methods apply to the "current" object. Initially this
221 // is the root object, but calls to BeginGPUDevice/EndGPUDevice and 234 // is the root object, but calls to BeginGPUDevice/EndGPUDevice and
222 // BeginAuxAttributes/EndAuxAttributes change the object to which these 235 // BeginAuxAttributes/EndAuxAttributes change the object to which these
223 // calls should apply. 236 // calls should apply.
224 virtual void AddInt64(const char* name, int64 value) = 0; 237 virtual void AddInt64(const char* name, int64 value) = 0;
225 virtual void AddInt(const char* name, int value) = 0; 238 virtual void AddInt(const char* name, int value) = 0;
226 virtual void AddString(const char* name, const std::string& value) = 0; 239 virtual void AddString(const char* name, const std::string& value) = 0;
227 virtual void AddBool(const char* name, bool value) = 0; 240 virtual void AddBool(const char* name, bool value) = 0;
228 virtual void AddTimeDeltaInSecondsF(const char* name, 241 virtual void AddTimeDeltaInSecondsF(const char* name,
229 const base::TimeDelta& value) = 0; 242 const base::TimeDelta& value) = 0;
230 243
231 // Markers indicating that a GPUDevice is being described. 244 // Markers indicating that a GPUDevice is being described.
232 virtual void BeginGPUDevice() = 0; 245 virtual void BeginGPUDevice() = 0;
233 virtual void EndGPUDevice() = 0; 246 virtual void EndGPUDevice() = 0;
234 247
248 // Markers indicating that a VideoDecodeAcceleratorSupportedProfile is
249 // being described.
250 virtual void BeginVideoDecodeAcceleratorSupportedProfile() = 0;
251 virtual void EndVideoDecodeAcceleratorSupportedProfile() = 0;
252
235 // Markers indicating that a VideoEncodeAcceleratorSupportedProfile is 253 // Markers indicating that a VideoEncodeAcceleratorSupportedProfile is
236 // being described. 254 // being described.
237 virtual void BeginVideoEncodeAcceleratorSupportedProfile() = 0; 255 virtual void BeginVideoEncodeAcceleratorSupportedProfile() = 0;
238 virtual void EndVideoEncodeAcceleratorSupportedProfile() = 0; 256 virtual void EndVideoEncodeAcceleratorSupportedProfile() = 0;
239 257
240 // Markers indicating that "auxiliary" attributes of the GPUInfo 258 // Markers indicating that "auxiliary" attributes of the GPUInfo
241 // (according to the DevTools protocol) are being described. 259 // (according to the DevTools protocol) are being described.
242 virtual void BeginAuxAttributes() = 0; 260 virtual void BeginAuxAttributes() = 0;
243 virtual void EndAuxAttributes() = 0; 261 virtual void EndAuxAttributes() = 0;
244 262
245 protected: 263 protected:
246 virtual ~Enumerator() {} 264 virtual ~Enumerator() {}
247 }; 265 };
248 266
249 // Outputs the fields in this structure to the provided enumerator. 267 // Outputs the fields in this structure to the provided enumerator.
250 void EnumerateFields(Enumerator* enumerator) const; 268 void EnumerateFields(Enumerator* enumerator) const;
251 }; 269 };
252 270
253 } // namespace gpu 271 } // namespace gpu
254 272
255 #endif // GPU_CONFIG_GPU_INFO_H_ 273 #endif // GPU_CONFIG_GPU_INFO_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/video_encoder_shim.cc ('k') | gpu/config/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698