Chromium Code Reviews| Index: media/gpu/gpu_video_encode_accelerator_factory.h |
| diff --git a/media/gpu/gpu_video_encode_accelerator_factory.h b/media/gpu/gpu_video_encode_accelerator_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9a5180fb81105a75180744fc9714bd6631f8fd22 |
| --- /dev/null |
| +++ b/media/gpu/gpu_video_encode_accelerator_factory.h |
| @@ -0,0 +1,38 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ |
| +#define MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ |
| + |
| +#include <memory> |
| + |
| +#include "gpu/command_buffer/service/gpu_preferences.h" |
| +#include "media/gpu/media_gpu_export.h" |
| +#include "media/video/video_encode_accelerator.h" |
| + |
| +namespace media { |
| + |
| +class MEDIA_GPU_EXPORT GpuVideoEncodeAcceleratorFactory { |
| + public: |
| + GpuVideoEncodeAcceleratorFactory() = default; |
| + 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.
|
| + |
| + std::unique_ptr<VideoEncodeAccelerator> CreateVEA( |
| + VideoPixelFormat input_format, |
| + const gfx::Size& input_visible_size, |
| + VideoCodecProfile output_profile, |
| + uint32_t initial_bitrate, |
| + VideoEncodeAccelerator::Client* client, |
| + const gpu::GpuPreferences& gpu_perferences); |
| + |
| + VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles( |
| + const gpu::GpuPreferences& gpu_preferences); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorFactory); |
| +}; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ |