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

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: edit description 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 57
58 // Specification of an encoding profile supported by a hardware encoder. 58 // Specification of an encoding profile supported by a hardware encoder.
59 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { 59 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile {
60 VideoCodecProfile profile; 60 VideoCodecProfile profile;
61 gfx::Size max_resolution; 61 gfx::Size max_resolution;
62 uint32 max_framerate_numerator; 62 uint32 max_framerate_numerator;
63 uint32 max_framerate_denominator; 63 uint32 max_framerate_denominator;
64 }; 64 };
65 65
66 // Specification of an decoding profile supported by a hardware decoder.
67 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile {
68 VideoCodecProfile profile;
69 gfx::Size min_resolution;
70 gfx::Size max_resolution;
71 };
72
66 struct GPU_EXPORT GPUInfo { 73 struct GPU_EXPORT GPUInfo {
67 struct GPU_EXPORT GPUDevice { 74 struct GPU_EXPORT GPUDevice {
68 GPUDevice(); 75 GPUDevice();
69 ~GPUDevice(); 76 ~GPUDevice();
70 77
71 // The DWORD (uint32) representing the graphics card vendor id. 78 // The DWORD (uint32) representing the graphics card vendor id.
72 uint32 vendor_id; 79 uint32 vendor_id;
73 80
74 // The DWORD (uint32) representing the graphics card device id. 81 // The DWORD (uint32) representing the graphics card device id.
75 // Device ids are unique to vendor, not to one another. 82 // Device ids are unique to vendor, not to one another.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // if the collection fails or not. 206 // if the collection fails or not.
200 CollectInfoResult basic_info_state; 207 CollectInfoResult basic_info_state;
201 CollectInfoResult context_info_state; 208 CollectInfoResult context_info_state;
202 #if defined(OS_WIN) 209 #if defined(OS_WIN)
203 CollectInfoResult dx_diagnostics_info_state; 210 CollectInfoResult dx_diagnostics_info_state;
204 211
205 // The information returned by the DirectX Diagnostics Tool. 212 // The information returned by the DirectX Diagnostics Tool.
206 DxDiagNode dx_diagnostics; 213 DxDiagNode dx_diagnostics;
207 #endif 214 #endif
208 215
216 std::vector<VideoDecodeAcceleratorSupportedProfile>
217 video_decode_accelerator_supported_profiles;
209 std::vector<VideoEncodeAcceleratorSupportedProfile> 218 std::vector<VideoEncodeAcceleratorSupportedProfile>
210 video_encode_accelerator_supported_profiles; 219 video_encode_accelerator_supported_profiles;
211 // Note: when adding new members, please remember to update EnumerateFields 220 // Note: when adding new members, please remember to update EnumerateFields
212 // in gpu_info.cc. 221 // in gpu_info.cc.
213 222
214 // In conjunction with EnumerateFields, this allows the embedder to 223 // In conjunction with EnumerateFields, this allows the embedder to
215 // enumerate the values in this structure without having to embed 224 // enumerate the values in this structure without having to embed
216 // references to its specific member variables. This simplifies the 225 // references to its specific member variables. This simplifies the
217 // addition of new fields to this type. 226 // addition of new fields to this type.
218 class Enumerator { 227 class Enumerator {
(...skipping 11 matching lines...) Expand all
230 239
231 // Markers indicating that a GPUDevice is being described. 240 // Markers indicating that a GPUDevice is being described.
232 virtual void BeginGPUDevice() = 0; 241 virtual void BeginGPUDevice() = 0;
233 virtual void EndGPUDevice() = 0; 242 virtual void EndGPUDevice() = 0;
234 243
235 // Markers indicating that a VideoEncodeAcceleratorSupportedProfile is 244 // Markers indicating that a VideoEncodeAcceleratorSupportedProfile is
236 // being described. 245 // being described.
237 virtual void BeginVideoEncodeAcceleratorSupportedProfile() = 0; 246 virtual void BeginVideoEncodeAcceleratorSupportedProfile() = 0;
238 virtual void EndVideoEncodeAcceleratorSupportedProfile() = 0; 247 virtual void EndVideoEncodeAcceleratorSupportedProfile() = 0;
239 248
249 // Markers indicating that a VideoDecodeAcceleratorSupportedProfile is
250 // being described.
251 virtual void BeginVideoDecodeAcceleratorSupportedProfile() = 0;
252 virtual void EndVideoDecodeAcceleratorSupportedProfile() = 0;
253
240 // Markers indicating that "auxiliary" attributes of the GPUInfo 254 // Markers indicating that "auxiliary" attributes of the GPUInfo
241 // (according to the DevTools protocol) are being described. 255 // (according to the DevTools protocol) are being described.
242 virtual void BeginAuxAttributes() = 0; 256 virtual void BeginAuxAttributes() = 0;
243 virtual void EndAuxAttributes() = 0; 257 virtual void EndAuxAttributes() = 0;
244 258
245 protected: 259 protected:
246 virtual ~Enumerator() {} 260 virtual ~Enumerator() {}
247 }; 261 };
248 262
249 // Outputs the fields in this structure to the provided enumerator. 263 // Outputs the fields in this structure to the provided enumerator.
250 void EnumerateFields(Enumerator* enumerator) const; 264 void EnumerateFields(Enumerator* enumerator) const;
251 }; 265 };
252 266
253 } // namespace gpu 267 } // namespace gpu
254 268
255 #endif // GPU_CONFIG_GPU_INFO_H_ 269 #endif // GPU_CONFIG_GPU_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698