Chromium Code Reviews| 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..eff7ea06a24d34f59cd69da95c50e04df0ffe78c 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,7 @@ 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; |
|
Pawel Osciak
2015/12/04 00:48:58
This may also happen if is_encrypted is not suppor
Tima Vaisburd
2015/12/04 01:36:50
Added " with encryption" inline.
|
| SendCreateDecoderReply(init_done_msg, false); |
| } |