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

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

Issue 842123002: Support multiple video decoders and encoders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add USE_V4L2_CODEC define Created 5 years, 11 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.h
diff --git a/content/common/gpu/media/gpu_video_encode_accelerator.h b/content/common/gpu/media/gpu_video_encode_accelerator.h
index 582333a5cd032774f8f110427347e374a8975b2c..899699678b97ea0b54a1e88159b0de49bc767723 100644
--- a/content/common/gpu/media/gpu_video_encode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_encode_accelerator.h
@@ -60,14 +60,20 @@ class GpuVideoEncodeAccelerator
// Static query for supported profiles. This query calls the appropriate
// platform-specific version.
static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>
- GetSupportedProfiles();
+ GetSupportedProfiles();
static std::vector<gpu::VideoEncodeAcceleratorSupportedProfile>
- ConvertMediaToGpuProfiles(const std::vector<
- media::VideoEncodeAccelerator::SupportedProfile>& media_profiles);
+ ConvertMediaToGpuProfiles(const std::vector<
+ media::VideoEncodeAccelerator::SupportedProfile>& media_profiles);
private:
- // Create the appropriate platform-specific VEA.
- static scoped_ptr<media::VideoEncodeAccelerator> CreateEncoder();
+ typedef scoped_ptr<media::VideoEncodeAccelerator>(*CreateVEAFp)();
+
+ // Return a set of VEA Create function pointers applicable to the current
+ // platform.
+ static std::vector<CreateVEAFp> CreateVEAFps();
+ static scoped_ptr<media::VideoEncodeAccelerator> CreateV4L2VEA();
+ static scoped_ptr<media::VideoEncodeAccelerator> CreateVaapiVEA();
+ static scoped_ptr<media::VideoEncodeAccelerator> CreateAndroidVEA();
// IPC handlers, proxying media::VideoEncodeAccelerator for the renderer
// process.
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698