Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1922)

Unified Diff: content/common/gpu/media/gpu_video_encode_accelerator.cc

Issue 20962003: ExynosVideoEncodeAccelerator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_vea
Patch Set: a496697c Nits, rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698