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