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

Side by Side Diff: media/gpu/gpu_video_encode_accelerator_factory.h

Issue 2858193002: Refactor: Extract gpu_video_encode_accelerator_factory. (Closed)
Patch Set: address kcwu's comments Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
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
20 std::unique_ptr<VideoEncodeAccelerator> CreateVEA(
21 VideoPixelFormat input_format,
Pawel Osciak 2017/05/15 01:28:51 Could this be static? Please also add short docs t
Owen Lin 2017/05/16 07:35:04 Done.
22 const gfx::Size& input_visible_size,
23 VideoCodecProfile output_profile,
24 uint32_t initial_bitrate,
25 VideoEncodeAccelerator::Client* client,
26 const gpu::GpuPreferences& gpu_perferences);
27
28 VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles(
29 const gpu::GpuPreferences& gpu_preferences);
Pawel Osciak 2017/05/15 01:28:51 And this as well?
Owen Lin 2017/05/16 07:35:05 Done.
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAcceleratorFactory);
Pawel Osciak 2017/05/15 01:28:51 Perhaps DISALLOW_IMPLICIT_CONSTRUCTORS() ?
Owen Lin 2017/05/16 07:35:05 Done.
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698