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

Unified Diff: content/common/gpu/media/gpu_video_accelerator_util.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_video_accelerator_util.cc
diff --git a/content/common/gpu/media/gpu_video_accelerator_util.cc b/content/common/gpu/media/gpu_video_accelerator_util.cc
index 7692fddc40a48b27115815c6d98ee23e4a93906c..635e33153040646d180db272e85f113c09d6a9fe 100644
--- a/content/common/gpu/media/gpu_video_accelerator_util.cc
+++ b/content/common/gpu/media/gpu_video_accelerator_util.cc
@@ -52,6 +52,7 @@ GpuVideoAcceleratorUtil::ConvertGpuToMediaDecodeProfiles(const
static_cast<media::VideoCodecProfile>(gpu_profile.profile);
profile.max_resolution = gpu_profile.max_resolution;
profile.min_resolution = gpu_profile.min_resolution;
+ profile.encrypted_only = gpu_profile.encrypted_only;
profiles.push_back(profile);
}
return profiles;
@@ -79,6 +80,7 @@ GpuVideoAcceleratorUtil::ConvertMediaToGpuDecodeProfiles(const
static_cast<gpu::VideoCodecProfile>(media_profile.profile);
profile.max_resolution = media_profile.max_resolution;
profile.min_resolution = media_profile.min_resolution;
+ profile.encrypted_only = media_profile.encrypted_only;
profiles.push_back(profile);
}
return profiles;
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.cc ('k') | gpu/config/gpu_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698