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

Side by Side Diff: media/mojo/services/renderer_config.h

Issue 1188753002: media: Fix mojo pipeline integration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MEDIA_EXPORT Created 5 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 | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/renderer_config.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MOJO_SERVICES_RENDERER_CONFIG_H_ 5 #ifndef MEDIA_MOJO_SERVICES_RENDERER_CONFIG_H_
6 #define MEDIA_MOJO_SERVICES_RENDERER_CONFIG_H_ 6 #define MEDIA_MOJO_SERVICES_RENDERER_CONFIG_H_
7 7
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 19 matching lines...) Expand all
30 // important status information. 30 // important status information.
31 virtual ScopedVector<AudioDecoder> GetAudioDecoders( 31 virtual ScopedVector<AudioDecoder> GetAudioDecoders(
32 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 32 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
33 const LogCB& media_log_cb) = 0; 33 const LogCB& media_log_cb) = 0;
34 virtual ScopedVector<VideoDecoder> GetVideoDecoders( 34 virtual ScopedVector<VideoDecoder> GetVideoDecoders(
35 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 35 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
36 const LogCB& media_log_cb) = 0; 36 const LogCB& media_log_cb) = 0;
37 37
38 // The output sink used for rendering audio or video respectively. 38 // The output sink used for rendering audio or video respectively.
39 virtual scoped_refptr<AudioRendererSink> GetAudioRendererSink() = 0; 39 virtual scoped_refptr<AudioRendererSink> GetAudioRendererSink() = 0;
40 virtual scoped_ptr<VideoRendererSink> GetVideoRendererSink() = 0; 40 virtual scoped_ptr<VideoRendererSink> GetVideoRendererSink(
41 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) = 0;
41 42
42 // The platform's audio hardware configuration. Note, this must remain 43 // The platform's audio hardware configuration. Note, this must remain
43 // constant for the lifetime of the PlatformRendererConfig. 44 // constant for the lifetime of the PlatformRendererConfig.
44 virtual const AudioHardwareConfig& GetAudioHardwareConfig() = 0; 45 virtual const AudioHardwareConfig& GetAudioHardwareConfig() = 0;
45 }; 46 };
46 47
47 class RendererConfig { 48 class RendererConfig {
48 public: 49 public:
49 // Returns an instance of the RenderConfig object. Only one instance will 50 // Returns an instance of the RenderConfig object. Only one instance will
50 // exist per process. 51 // exist per process.
51 static RendererConfig* Get(); 52 static RendererConfig* Get();
52 53
53 // Copy of the PlatformRendererConfig interface. 54 // Copy of the PlatformRendererConfig interface.
54 ScopedVector<AudioDecoder> GetAudioDecoders( 55 ScopedVector<AudioDecoder> GetAudioDecoders(
55 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 56 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
56 const LogCB& media_log_cb); 57 const LogCB& media_log_cb);
57 ScopedVector<VideoDecoder> GetVideoDecoders( 58 ScopedVector<VideoDecoder> GetVideoDecoders(
58 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 59 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
59 const LogCB& media_log_cb); 60 const LogCB& media_log_cb);
60 scoped_refptr<AudioRendererSink> GetAudioRendererSink(); 61 scoped_refptr<AudioRendererSink> GetAudioRendererSink();
61 scoped_ptr<VideoRendererSink> GetVideoRendererSink(); 62 scoped_ptr<VideoRendererSink> GetVideoRendererSink(
63 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
62 const AudioHardwareConfig& GetAudioHardwareConfig(); 64 const AudioHardwareConfig& GetAudioHardwareConfig();
63 65
64 private: 66 private:
65 friend struct base::DefaultLazyInstanceTraits<RendererConfig>; 67 friend struct base::DefaultLazyInstanceTraits<RendererConfig>;
66 68
67 RendererConfig(); 69 RendererConfig();
68 ~RendererConfig(); 70 ~RendererConfig();
69 71
70 scoped_ptr<PlatformRendererConfig> renderer_config_; 72 scoped_ptr<PlatformRendererConfig> renderer_config_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(RendererConfig); 74 DISALLOW_COPY_AND_ASSIGN(RendererConfig);
73 }; 75 };
74 76
75 } // namespace media 77 } // namespace media
76 78
77 #endif // MEDIA_MOJO_SERVICES_RENDERER_CONFIG_H_ 79 #endif // MEDIA_MOJO_SERVICES_RENDERER_CONFIG_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/renderer_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698