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 8d115ee656c2c0ab54805d3e108de93aa06c8775..4624ea220d7f0e29b04a98c4f19ee19dd0f0aafc 100644 |
--- a/content/common/gpu/media/gpu_video_encode_accelerator.cc |
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc |
@@ -17,6 +17,8 @@ |
#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
#include "content/common/gpu/media/exynos_video_encode_accelerator.h" |
+#elif defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
+#include "content/common/gpu/media/android_video_encode_accelerator.h" |
#endif |
namespace content { |
@@ -88,6 +90,8 @@ GpuVideoEncodeAccelerator::GetSupportedProfiles() { |
#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
profiles = ExynosVideoEncodeAccelerator::GetSupportedProfiles(); |
+#elif defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
+ profiles = AndroidVideoEncodeAccelerator::GetSupportedProfiles(); |
#endif |
// TODO(sheu): return platform-specific profiles. |
@@ -95,8 +99,11 @@ GpuVideoEncodeAccelerator::GetSupportedProfiles() { |
} |
void GpuVideoEncodeAccelerator::CreateEncoder() { |
+ DCHECK(!encoder_); |
#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) && defined(USE_X11) |
encoder_.reset(new ExynosVideoEncodeAccelerator(this)); |
+#elif defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
+ encoder_.reset(new AndroidVideoEncodeAccelerator(this)); |
#endif |
} |