| Index: content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| diff --git a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| index cef83f6f0825e3f98d786f7e36c559fa83f99f7e..be791bbf081caff2905602447e6f5e729a1bf858 100644
|
| --- a/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| +++ b/content/common/gpu/client/gpu_video_decode_accelerator_host.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/message_loop/message_loop.h"
|
| #include "content/common/gpu/client/gpu_channel_host.h"
|
| #include "content/common/gpu/gpu_messages.h"
|
| +#include "content/common/gpu/media/gpu_video_accelerator_util.h"
|
| #include "content/common/view_messages.h"
|
| #include "ipc/ipc_message_macros.h"
|
| #include "ipc/ipc_message_utils.h"
|
| @@ -79,6 +80,15 @@ void GpuVideoDecodeAcceleratorHost::OnChannelError() {
|
| PostNotifyError(PLATFORM_FAILURE);
|
| }
|
|
|
| +std::vector<media::VideoDecodeAccelerator::SupportedProfile>
|
| +GpuVideoDecodeAcceleratorHost::GetSupportedProfiles() {
|
| + DCHECK(CalledOnValidThread());
|
| + if (!channel_)
|
| + return std::vector<media::VideoDecodeAccelerator::SupportedProfile>();
|
| + return GpuVideoAcceleratorUtil::ConvertGpuToMediaDecodeProfiles(
|
| + channel_->gpu_info().video_decode_accelerator_supported_profiles);
|
| +}
|
| +
|
| bool GpuVideoDecodeAcceleratorHost::Initialize(media::VideoCodecProfile profile,
|
| Client* client) {
|
| DCHECK(CalledOnValidThread());
|
|
|