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

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: 98e247b0 EXPBUF fix. Created 7 years, 5 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 fa0a2b5449c1d9606915d23154cf94ba1689fd1c..91ee05bd7be8526dcae121aa4ad47894e12d04f4 100644
--- a/content/common/gpu/media/gpu_video_encode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.cc
@@ -9,6 +9,10 @@
#include "content/common/gpu/gpu_messages.h"
#include "ipc/ipc_message_macros.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,
@@ -90,6 +94,10 @@ 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;
}
@@ -98,7 +106,10 @@ scoped_ptr<media::VideoEncodeAccelerator>
GpuVideoEncodeAccelerator::CreateEncoder() {
scoped_ptr<media::VideoEncodeAccelerator> encoder;
- // TODO(sheu): return platform-specific encoder.
+#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
+ encoder.reset(new ExynosVideoEncodeAccelerator(this));
+#endif
+
return encoder.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698