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

Unified Diff: content/renderer/media/rtc_video_decoder.cc

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...because trybots have feelings too. Created 5 years 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
Index: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index aebe9f2846c8e5e72cd12c73af4ccacfe66cf01d..464639fc96e80c16b848d98d246abb9a5a4500f3 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -652,10 +652,10 @@ void RTCVideoDecoder::ReusePictureBuffer(int64 picture_buffer_id) {
bool RTCVideoDecoder::IsProfileSupported(media::VideoCodecProfile profile) {
DCheckGpuVideoAcceleratorFactoriesTaskRunnerIsCurrent();
- media::VideoDecodeAccelerator::SupportedProfiles supported_profiles =
- factories_->GetVideoDecodeAcceleratorSupportedProfiles();
+ media::VideoDecodeAccelerator::Capabilities capabilities =
+ factories_->GetVideoDecodeAcceleratorCapabilities();
- for (const auto& supported_profile : supported_profiles) {
+ for (const auto& supported_profile : capabilities.supported_profiles) {
if (profile == supported_profile.profile) {
min_resolution_ = supported_profile.min_resolution;
max_resolution_ = supported_profile.max_resolution;

Powered by Google App Engine
This is Rietveld 408576698