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 22 matching lines...) Expand all Loading... | |
| 33 kCollectInfoSuccess = 1, | 33 kCollectInfoSuccess = 1, |
| 34 kCollectInfoNonFatalFailure = 2, | 34 kCollectInfoNonFatalFailure = 2, |
| 35 kCollectInfoFatalFailure = 3 | 35 kCollectInfoFatalFailure = 3 |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Video profile. This *must* match media::VideoCodecProfile. | 38 // Video profile. This *must* match media::VideoCodecProfile. |
| 39 enum VideoCodecProfile { | 39 enum VideoCodecProfile { |
| 40 VIDEO_CODEC_PROFILE_UNKNOWN = -1, | 40 VIDEO_CODEC_PROFILE_UNKNOWN = -1, |
| 41 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, | 41 VIDEO_CODEC_PROFILE_MIN = VIDEO_CODEC_PROFILE_UNKNOWN, |
| 42 H264PROFILE_BASELINE = 0, | 42 H264PROFILE_BASELINE = 0, |
| 43 H264PROFILE_MAIN = 1, | 43 H264PROFILE_MAIN, |
|
ddorwin
2016/02/26 18:54:17
If this must match, shouldn't we leave the literal
servolk
2016/02/26 19:50:19
I think that's redundant. Values in this enum must
| |
| 44 H264PROFILE_EXTENDED = 2, | 44 H264PROFILE_EXTENDED, |
| 45 H264PROFILE_HIGH = 3, | 45 H264PROFILE_HIGH, |
| 46 H264PROFILE_HIGH10PROFILE = 4, | 46 H264PROFILE_HIGH10PROFILE, |
| 47 H264PROFILE_HIGH422PROFILE = 5, | 47 H264PROFILE_HIGH422PROFILE, |
| 48 H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, | 48 H264PROFILE_HIGH444PREDICTIVEPROFILE, |
| 49 H264PROFILE_SCALABLEBASELINE = 7, | 49 H264PROFILE_SCALABLEBASELINE, |
| 50 H264PROFILE_SCALABLEHIGH = 8, | 50 H264PROFILE_SCALABLEHIGH, |
| 51 H264PROFILE_STEREOHIGH = 9, | 51 H264PROFILE_STEREOHIGH, |
| 52 H264PROFILE_MULTIVIEWHIGH = 10, | 52 H264PROFILE_MULTIVIEWHIGH, |
| 53 VP8PROFILE_ANY = 11, | 53 VP8PROFILE_ANY, |
| 54 VP9PROFILE_ANY = 12, | 54 VP9PROFILE_ANY, |
| 55 VIDEO_CODEC_PROFILE_MAX = VP9PROFILE_ANY, | 55 HEVCPROFILE_MAIN, |
| 56 HEVCPROFILE_MAIN10, | |
| 57 HEVCPROFILE_MAIN_STILL_PICTURE, | |
| 58 VIDEO_CODEC_PROFILE_MAX = HEVCPROFILE_MAIN_STILL_PICTURE, | |
| 56 }; | 59 }; |
| 57 | 60 |
| 58 // Specification of a decoding profile supported by a hardware decoder. | 61 // Specification of a decoding profile supported by a hardware decoder. |
| 59 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { | 62 struct GPU_EXPORT VideoDecodeAcceleratorSupportedProfile { |
| 60 VideoCodecProfile profile; | 63 VideoCodecProfile profile; |
| 61 gfx::Size max_resolution; | 64 gfx::Size max_resolution; |
| 62 gfx::Size min_resolution; | 65 gfx::Size min_resolution; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 using VideoDecodeAcceleratorSupportedProfiles = | 68 using VideoDecodeAcceleratorSupportedProfiles = |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 277 virtual ~Enumerator() {} | 280 virtual ~Enumerator() {} |
| 278 }; | 281 }; |
| 279 | 282 |
| 280 // Outputs the fields in this structure to the provided enumerator. | 283 // Outputs the fields in this structure to the provided enumerator. |
| 281 void EnumerateFields(Enumerator* enumerator) const; | 284 void EnumerateFields(Enumerator* enumerator) const; |
| 282 }; | 285 }; |
| 283 | 286 |
| 284 } // namespace gpu | 287 } // namespace gpu |
| 285 | 288 |
| 286 #endif // GPU_CONFIG_GPU_INFO_H_ | 289 #endif // GPU_CONFIG_GPU_INFO_H_ |
| OLD | NEW |