Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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. | 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 uint32 flags; | |
|
Pawel Osciak
2015/12/04 11:09:45
Do we need this in each profile? Do we expect thes
liberato (no reviews please)
2015/12/04 18:28:58
Done.
| |
| 62 }; | 63 }; |
| 63 using VideoDecodeAcceleratorSupportedProfiles = | 64 using VideoDecodeAcceleratorSupportedProfiles = |
| 64 std::vector<VideoDecodeAcceleratorSupportedProfile>; | 65 std::vector<VideoDecodeAcceleratorSupportedProfile>; |
| 65 | 66 |
| 66 // Specification of an encoding profile supported by a hardware encoder. | 67 // Specification of an encoding profile supported by a hardware encoder. |
| 67 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { | 68 struct GPU_EXPORT VideoEncodeAcceleratorSupportedProfile { |
| 68 VideoCodecProfile profile; | 69 VideoCodecProfile profile; |
| 69 gfx::Size max_resolution; | 70 gfx::Size max_resolution; |
| 70 uint32 max_framerate_numerator; | 71 uint32 max_framerate_numerator; |
| 71 uint32 max_framerate_denominator; | 72 uint32 max_framerate_denominator; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 virtual ~Enumerator() {} | 270 virtual ~Enumerator() {} |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 // Outputs the fields in this structure to the provided enumerator. | 273 // Outputs the fields in this structure to the provided enumerator. |
| 273 void EnumerateFields(Enumerator* enumerator) const; | 274 void EnumerateFields(Enumerator* enumerator) const; |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace gpu | 277 } // namespace gpu |
| 277 | 278 |
| 278 #endif // GPU_CONFIG_GPU_INFO_H_ | 279 #endif // GPU_CONFIG_GPU_INFO_H_ |
| OLD | NEW |