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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments 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_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index 712f9526c662a8aa85e3e66d5b52671b938b4934..2dfe85bece7825994ca001d7c4ee1c7200204134 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -323,7 +323,7 @@ bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) {
}
void GpuVideoDecodeAccelerator::Initialize(
- const media::VideoCodecProfile profile,
+ const media::VideoDecodeAccelerator::Config& config,
IPC::Message* init_done_msg) {
DCHECK(!video_decode_accelerator_);
@@ -356,7 +356,7 @@ void GpuVideoDecodeAccelerator::Initialize(
for (const auto& create_vda_function : create_vda_fps) {
video_decode_accelerator_ = (this->*create_vda_function)();
if (!video_decode_accelerator_ ||
- !video_decode_accelerator_->Initialize(profile, this))
+ !video_decode_accelerator_->Initialize(config, this))
continue;
if (video_decode_accelerator_->CanDecodeOnIOThread()) {
@@ -367,7 +367,8 @@ void GpuVideoDecodeAccelerator::Initialize(
return;
}
video_decode_accelerator_.reset();
- LOG(ERROR) << "HW video decode not available for profile " << profile;
+ LOG(ERROR) << "HW video decode not available for profile " << config.profile
+ << (config.is_encrypted ? " with encryption" : "");
SendCreateDecoderReply(init_done_msg, false);
}

Powered by Google App Engine
This is Rietveld 408576698