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

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: 53779052 Added framerate changing. 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 b967d4d90880a0d86d5e2d625f5de07f345abd36..4d1ff097b124c705a3ff32a81fe584c655c26ba1 100644
--- a/content/common/gpu/media/gpu_video_encode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc
@@ -11,6 +11,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,
@@ -77,12 +81,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