OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
kcwu
2017/05/05 09:31:17
2017
Owen Lin
2017/05/11 08:09:29
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
6 #define MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "gpu/command_buffer/service/gpu_preferences.h" | |
11 #include "media/gpu/media_gpu_export.h" | |
12 #include "media/video/video_encode_accelerator.h" | |
13 | |
14 namespace media { | |
15 | |
16 class MEDIA_GPU_EXPORT GpuVideoEncodeAcceleratorFactory { | |
17 public: | |
18 GpuVideoEncodeAcceleratorFactory() = default; | |
19 virtual ~GpuVideoEncodeAcceleratorFactory() = default; | |
kcwu
2017/05/05 09:31:17
dtor could be removed? at least no need for "virtu
Owen Lin
2017/05/11 08:09:29
Done.
| |
20 | |
21 std::unique_ptr<VideoEncodeAccelerator> CreateVEA( | |
22 VideoPixelFormat input_format, | |
23 const gfx::Size& input_visible_size, | |
24 VideoCodecProfile output_profile, | |
25 uint32_t initial_bitrate, | |
26 VideoEncodeAccelerator::Client* client, | |
27 const gpu::GpuPreferences& gpu_perferences); | |
28 | |
29 VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles( | |
30 const gpu::GpuPreferences& gpu_preferences); | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorFactory); | |
34 }; | |
35 | |
36 } // namespace media | |
37 | |
38 #endif // MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
OLD | NEW |