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 83bbb5e369eb6df20505314de5c2e16b899c77e3..f73996eeba80056802e9a37c52683df6ad5d0bff 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( |