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

Side by Side Diff: media/gpu/ipc/service/gpu_video_encode_accelerator.h

Issue 2146463002: Fix V4L2VideoEncodeAccelerator is not enabled in GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static gpu::VideoEncodeAcceleratorSupportedProfiles GetSupportedProfiles( 73 static gpu::VideoEncodeAcceleratorSupportedProfiles GetSupportedProfiles(
74 const gpu::GpuPreferences& gpu_preferences); 74 const gpu::GpuPreferences& gpu_preferences);
75 75
76 private: 76 private:
77 typedef std::unique_ptr<VideoEncodeAccelerator> (*CreateVEAFp)(); 77 typedef std::unique_ptr<VideoEncodeAccelerator> (*CreateVEAFp)();
78 78
79 // Return a set of VEA Create function pointers applicable to the current 79 // Return a set of VEA Create function pointers applicable to the current
80 // platform. 80 // platform.
81 static std::vector<CreateVEAFp> CreateVEAFps( 81 static std::vector<CreateVEAFp> CreateVEAFps(
82 const gpu::GpuPreferences& gpu_preferences); 82 const gpu::GpuPreferences& gpu_preferences);
83 #if defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) 83 #if defined(OS_CHROMEOS) && (defined(ARCH_CPU_ARMEL) || \
84 (defined(USE_OZONE) && defined(USE_V4L2_CODEC)))
wuchengli 2016/07/12 11:39:51 Why do we need ozone? https://codereview.chromium.
ilja 2016/07/12 21:25:02 All shipping boards except for tegra have ozone ri
wuchengli 2016/07/13 02:24:10 I looked at the git history and old chromium issue
henryhsu 2016/07/13 03:29:59 will remove in another cl
84 static std::unique_ptr<VideoEncodeAccelerator> CreateV4L2VEA(); 85 static std::unique_ptr<VideoEncodeAccelerator> CreateV4L2VEA();
85 #endif 86 #endif
86 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) 87 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)
87 static std::unique_ptr<VideoEncodeAccelerator> CreateVaapiVEA(); 88 static std::unique_ptr<VideoEncodeAccelerator> CreateVaapiVEA();
88 #endif 89 #endif
89 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) 90 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC)
90 static std::unique_ptr<VideoEncodeAccelerator> CreateAndroidVEA(); 91 static std::unique_ptr<VideoEncodeAccelerator> CreateAndroidVEA();
91 #endif 92 #endif
92 #if defined(OS_MACOSX) 93 #if defined(OS_MACOSX)
93 static std::unique_ptr<VideoEncodeAccelerator> CreateVTVEA(); 94 static std::unique_ptr<VideoEncodeAccelerator> CreateVTVEA();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 // Weak pointer for VideoFrames that refer back to |this|. 130 // Weak pointer for VideoFrames that refer back to |this|.
130 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; 131 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); 133 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator);
133 }; 134 };
134 135
135 } // namespace media 136 } // namespace media
136 137
137 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 138 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698