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

Unified Diff: content/common/gpu/media/gpu_video_accelerator_util.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: 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/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 d23c19206982131c27a3a324668069fb0d44d501..fc98bc388d3bcd848024e90a45f5bb054a00f29b 100644
--- a/content/common/gpu/media/gpu_video_accelerator_util.cc
+++ b/content/common/gpu/media/gpu_video_accelerator_util.cc
@@ -41,6 +41,9 @@ 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.flags = static_cast<
+ media::VideoDecodeAccelerator::SupportedProfile::ProfileFlags>(
+ gpu_profile.flags);
profiles.push_back(profile);
}
return profiles;
@@ -57,6 +60,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.flags = static_cast<uint32>(media_profile.flags);
profiles.push_back(profile);
}
return profiles;

Powered by Google App Engine
This is Rietveld 408576698