| 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 #include <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "gpu/config/gpu_info.h" | 7 #include "gpu/config/gpu_info.h" |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 void EnumerateVideoDecodeAcceleratorSupportedProfile( | 22 void EnumerateVideoDecodeAcceleratorSupportedProfile( |
| 23 const gpu::VideoDecodeAcceleratorSupportedProfile& profile, | 23 const gpu::VideoDecodeAcceleratorSupportedProfile& profile, |
| 24 gpu::GPUInfo::Enumerator* enumerator) { | 24 gpu::GPUInfo::Enumerator* enumerator) { |
| 25 enumerator->BeginVideoDecodeAcceleratorSupportedProfile(); | 25 enumerator->BeginVideoDecodeAcceleratorSupportedProfile(); |
| 26 enumerator->AddInt("profile", profile.profile); | 26 enumerator->AddInt("profile", profile.profile); |
| 27 enumerator->AddInt("maxResolutionWidth", profile.max_resolution.width()); | 27 enumerator->AddInt("maxResolutionWidth", profile.max_resolution.width()); |
| 28 enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height()); | 28 enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height()); |
| 29 enumerator->AddInt("minResolutionWidth", profile.min_resolution.width()); | 29 enumerator->AddInt("minResolutionWidth", profile.min_resolution.width()); |
| 30 enumerator->AddInt("minResolutionHeight", profile.min_resolution.height()); | 30 enumerator->AddInt("minResolutionHeight", profile.min_resolution.height()); |
| 31 enumerator->AddBool("encrypted_only", profile.encrypted_only); |
| 31 enumerator->EndVideoDecodeAcceleratorSupportedProfile(); | 32 enumerator->EndVideoDecodeAcceleratorSupportedProfile(); |
| 32 } | 33 } |
| 33 | 34 |
| 34 void EnumerateVideoEncodeAcceleratorSupportedProfile( | 35 void EnumerateVideoEncodeAcceleratorSupportedProfile( |
| 35 const gpu::VideoEncodeAcceleratorSupportedProfile& profile, | 36 const gpu::VideoEncodeAcceleratorSupportedProfile& profile, |
| 36 gpu::GPUInfo::Enumerator* enumerator) { | 37 gpu::GPUInfo::Enumerator* enumerator) { |
| 37 enumerator->BeginVideoEncodeAcceleratorSupportedProfile(); | 38 enumerator->BeginVideoEncodeAcceleratorSupportedProfile(); |
| 38 enumerator->AddInt("profile", profile.profile); | 39 enumerator->AddInt("profile", profile.profile); |
| 39 enumerator->AddInt("maxResolutionWidth", profile.max_resolution.width()); | 40 enumerator->AddInt("maxResolutionWidth", profile.max_resolution.width()); |
| 40 enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height()); | 41 enumerator->AddInt("maxResolutionHeight", profile.max_resolution.height()); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 video_decode_accelerator_capabilities.supported_profiles) | 193 video_decode_accelerator_capabilities.supported_profiles) |
| 193 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); | 194 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); |
| 194 for (const auto& profile : video_encode_accelerator_supported_profiles) | 195 for (const auto& profile : video_encode_accelerator_supported_profiles) |
| 195 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); | 196 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); |
| 196 enumerator->AddBool("jpegDecodeAcceleratorSupported", | 197 enumerator->AddBool("jpegDecodeAcceleratorSupported", |
| 197 jpeg_decode_accelerator_supported); | 198 jpeg_decode_accelerator_supported); |
| 198 enumerator->EndAuxAttributes(); | 199 enumerator->EndAuxAttributes(); |
| 199 } | 200 } |
| 200 | 201 |
| 201 } // namespace gpu | 202 } // namespace gpu |
| OLD | NEW |