| Index: content/common/gpu/media/gpu_video_encode_accelerator.cc
|
| diff --git a/content/common/gpu/media/gpu_video_encode_accelerator.cc b/content/common/gpu/media/gpu_video_encode_accelerator.cc
|
| index b15f04bc619413c4bca4f2515a04292c68520256..d49d9a9107bb3373f2b8baa055a3edf06b289f51 100644
|
| --- a/content/common/gpu/media/gpu_video_encode_accelerator.cc
|
| +++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc
|
| @@ -13,6 +13,10 @@
|
| #include "ipc/ipc_message_macros.h"
|
| #include "media/base/video_frame.h"
|
|
|
| +#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
|
| +#include "content/common/gpu/media/exynos_video_encode_accelerator.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| GpuVideoEncodeAccelerator::GpuVideoEncodeAccelerator(GpuChannel* gpu_channel,
|
| @@ -80,12 +84,18 @@ std::vector<media::VideoEncodeAccelerator::SupportedProfile>
|
| GpuVideoEncodeAccelerator::GetSupportedProfiles() {
|
| std::vector<media::VideoEncodeAccelerator::SupportedProfile> profiles;
|
|
|
| +#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
|
| + profiles = ExynosVideoEncodeAccelerator::GetSupportedProfiles();
|
| +#endif
|
| +
|
| // TODO(sheu): return platform-specific profiles.
|
| return profiles;
|
| }
|
|
|
| void GpuVideoEncodeAccelerator::CreateEncoder() {
|
| - // TODO(sheu): actual create the encoder.
|
| +#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
|
| + encoder_.reset(new ExynosVideoEncodeAccelerator(this));
|
| +#endif
|
| }
|
|
|
| void GpuVideoEncodeAccelerator::OnInitialize(
|
| @@ -147,7 +157,7 @@ void GpuVideoEncodeAccelerator::OnEncode(int32 frame_id,
|
|
|
| scoped_refptr<media::VideoFrame> frame =
|
| media::VideoFrame::WrapExternalSharedMemory(
|
| - media::VideoFrame::I420,
|
| + input_format_,
|
| input_coded_size_,
|
| gfx::Rect(input_visible_size_),
|
| input_visible_size_,
|
|
|