OLD | NEW |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 57 // Specification of a decoding profile supported by a hardware decoder. |
58 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { | 58 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { |
59 VideoCodecProfile profile; | 59 VideoCodecProfile profile; |
60 gfx::Size max_resolution; | 60 gfx::Size max_resolution; |
61 gfx::Size min_resolution; | 61 gfx::Size min_resolution; |
62 }; | 62 }; |
| 63 |
63 using VideoDecodeAcceleratorSupportedProfiles = | 64 using VideoDecodeAcceleratorSupportedProfiles = |
64 std::vector<VideoDecodeAcceleratorSupportedProfile>; | 65 std::vector<VideoDecodeAcceleratorSupportedProfile>; |
65 | 66 |
| 67 struct GPU_EXPORT VideoDecodeAcceleratorCapabilities { |
| 68 VideoDecodeAcceleratorCapabilities(); |
| 69 ~VideoDecodeAcceleratorCapabilities(); |
| 70 VideoDecodeAcceleratorSupportedProfiles supported_profiles; |
| 71 uint32 flags; |
| 72 }; |
| 73 |
66 // Specification of an encoding profile supported by a hardware encoder. | 74 // Specification of an encoding profile supported by a hardware encoder. |
67 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { | 75 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { |
68 VideoCodecProfile profile; | 76 VideoCodecProfile profile; |
69 gfx::Size max_resolution; | 77 gfx::Size max_resolution; |
70 uint32 max_framerate_numerator; | 78 uint32 max_framerate_numerator; |
71 uint32 max_framerate_denominator; | 79 uint32 max_framerate_denominator; |
72 }; | 80 }; |
73 using VideoEncodeAcceleratorSupportedProfiles = | 81 using VideoEncodeAcceleratorSupportedProfiles = |
74 std::vector<VideoEncodeAcceleratorSupportedProfile>; | 82 std::vector<VideoEncodeAcceleratorSupportedProfile>; |
75 | 83 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // if the collection fails or not. | 221 // if the collection fails or not. |
214 CollectInfoResult basic_info_state; | 222 CollectInfoResult basic_info_state; |
215 CollectInfoResult context_info_state; | 223 CollectInfoResult context_info_state; |
216 #if defined(OS_WIN) | 224 #if defined(OS_WIN) |
217 CollectInfoResult dx_diagnostics_info_state; | 225 CollectInfoResult dx_diagnostics_info_state; |
218 | 226 |
219 // The information returned by the DirectX Diagnostics Tool. | 227 // The information returned by the DirectX Diagnostics Tool. |
220 DxDiagNode dx_diagnostics; | 228 DxDiagNode dx_diagnostics; |
221 #endif | 229 #endif |
222 | 230 |
223 VideoDecodeAcceleratorSupportedProfiles | 231 VideoDecodeAcceleratorCapabilities video_decode_accelerator_capabilities; |
224 video_decode_accelerator_supported_profiles; | |
225 VideoEncodeAcceleratorSupportedProfiles | 232 VideoEncodeAcceleratorSupportedProfiles |
226 video_encode_accelerator_supported_profiles; | 233 video_encode_accelerator_supported_profiles; |
227 bool jpeg_decode_accelerator_supported; | 234 bool jpeg_decode_accelerator_supported; |
228 | 235 |
229 // Note: when adding new members, please remember to update EnumerateFields | 236 // Note: when adding new members, please remember to update EnumerateFields |
230 // in gpu_info.cc. | 237 // in gpu_info.cc. |
231 | 238 |
232 // In conjunction with EnumerateFields, this allows the embedder to | 239 // In conjunction with EnumerateFields, this allows the embedder to |
233 // enumerate the values in this structure without having to embed | 240 // enumerate the values in this structure without having to embed |
234 // references to its specific member variables. This simplifies the | 241 // references to its specific member variables. This simplifies the |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 virtual ~Enumerator() {} | 276 virtual ~Enumerator() {} |
270 }; | 277 }; |
271 | 278 |
272 // Outputs the fields in this structure to the provided enumerator. | 279 // Outputs the fields in this structure to the provided enumerator. |
273 void EnumerateFields(Enumerator* enumerator) const; | 280 void EnumerateFields(Enumerator* enumerator) const; |
274 }; | 281 }; |
275 | 282 |
276 } // namespace gpu | 283 } // namespace gpu |
277 | 284 |
278 #endif // GPU_CONFIG_GPU_INFO_H_ | 285 #endif // GPU_CONFIG_GPU_INFO_H_ |
OLD | NEW |