Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Side by Side Diff: gpu/config/gpu_info.cc

Issue 1820553002: Expose encrypted_only attribute on VDA supported profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/config/gpu_info.h ('k') | media/filters/gpu_video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/config/gpu_info.h ('k') | media/filters/gpu_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698