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

Side by Side Diff: media/base/decoder_factory.h

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows needs some more headers, apaprently. Created 4 years, 6 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
« no previous file with comments | « content/renderer/media/media_interface_provider.cc ('k') | media/base/decoder_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BASE_DECODER_FACTORY_H_ 5 #ifndef MEDIA_BASE_DECODER_FACTORY_H_
6 #define MEDIA_BASE_DECODER_FACTORY_H_ 6 #define MEDIA_BASE_DECODER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
12 12
13 namespace base { 13 namespace base {
14 class SingleThreadTaskRunner; 14 class SingleThreadTaskRunner;
15 } 15 }
16 16
17 namespace media { 17 namespace media {
18 18
19 class AudioDecoder; 19 class AudioDecoder;
20 class GpuVideoAcceleratorFactories;
20 class VideoDecoder; 21 class VideoDecoder;
21 22
22 // A factory class for creating audio and video decoders. 23 // A factory class for creating audio and video decoders.
23 class MEDIA_EXPORT DecoderFactory { 24 class MEDIA_EXPORT DecoderFactory {
24 public: 25 public:
25 DecoderFactory(); 26 DecoderFactory();
26 virtual ~DecoderFactory(); 27 virtual ~DecoderFactory();
27 28
28 // Creates audio decoders and append them to the end of |audio_decoders|. 29 // Creates audio decoders and append them to the end of |audio_decoders|.
29 // Decoders are single-threaded, each decoder should run on |task_runner|. 30 // Decoders are single-threaded, each decoder should run on |task_runner|.
30 virtual void CreateAudioDecoders( 31 virtual void CreateAudioDecoders(
31 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
32 ScopedVector<AudioDecoder>* audio_decoders); 33 ScopedVector<AudioDecoder>* audio_decoders);
33 34
34 // Creates video decoders and append them to the end of |video_decoders|. 35 // Creates video decoders and append them to the end of |video_decoders|.
35 // Decoders are single-threaded, each decoder should run on |task_runner|. 36 // Decoders are single-threaded, each decoder should run on |task_runner|.
36 virtual void CreateVideoDecoders( 37 virtual void CreateVideoDecoders(
37 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 38 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
39 GpuVideoAcceleratorFactories* gpu_factories,
38 ScopedVector<VideoDecoder>* video_decoders); 40 ScopedVector<VideoDecoder>* video_decoders);
39 41
40 private: 42 private:
41 DISALLOW_COPY_AND_ASSIGN(DecoderFactory); 43 DISALLOW_COPY_AND_ASSIGN(DecoderFactory);
42 }; 44 };
43 45
44 } // namespace media 46 } // namespace media
45 47
46 #endif // MEDIA_BASE_DECODER_FACTORY_H_ 48 #endif // MEDIA_BASE_DECODER_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_interface_provider.cc ('k') | media/base/decoder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698