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

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

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). Created 3 years, 11 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/gpu_mojo_media_client.cc ('k') | media/mojo/services/mojo_media_client.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_MOJO_MEDIA_CLIENT_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "media/mojo/interfaces/video_decoder.mojom.h"
12 #include "media/mojo/services/media_mojo_export.h" 13 #include "media/mojo/services/media_mojo_export.h"
13 14
14 namespace base { 15 namespace base {
15 class SingleThreadTaskRunner; 16 class SingleThreadTaskRunner;
16 } 17 }
17 18
18 namespace service_manager { 19 namespace service_manager {
19 class Connector; 20 class Connector;
20 namespace mojom { 21 namespace mojom {
21 class InterfaceProvider; 22 class InterfaceProvider;
(...skipping 18 matching lines...) Expand all
40 virtual ~MojoMediaClient(); 41 virtual ~MojoMediaClient();
41 42
42 // Called exactly once before any other method. |connector| can be used by 43 // Called exactly once before any other method. |connector| can be used by
43 // |this| to connect to other services. It is guaranteed to outlive |this|. 44 // |this| to connect to other services. It is guaranteed to outlive |this|.
44 virtual void Initialize(service_manager::Connector* connector); 45 virtual void Initialize(service_manager::Connector* connector);
45 46
46 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder( 47 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder(
47 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 48 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
48 49
49 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( 50 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder(
50 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 51 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
52 mojom::CommandBufferIdPtr command_buffer_id);
51 53
52 // Returns the output sink used for rendering audio on |audio_device_id|. 54 // Returns the output sink used for rendering audio on |audio_device_id|.
53 // May be null if the RendererFactory doesn't need an audio sink. 55 // May be null if the RendererFactory doesn't need an audio sink.
54 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink( 56 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink(
55 const std::string& audio_device_id); 57 const std::string& audio_device_id);
56 58
57 // Returns the output sink used for rendering video. 59 // Returns the output sink used for rendering video.
58 // May be null if the RendererFactory doesn't need a video sink. 60 // May be null if the RendererFactory doesn't need a video sink.
59 virtual std::unique_ptr<VideoRendererSink> CreateVideoRendererSink( 61 virtual std::unique_ptr<VideoRendererSink> CreateVideoRendererSink(
60 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 62 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
61 63
62 // Returns the RendererFactory to be used by MojoRendererService. 64 // Returns the RendererFactory to be used by MojoRendererService.
63 virtual std::unique_ptr<RendererFactory> CreateRendererFactory( 65 virtual std::unique_ptr<RendererFactory> CreateRendererFactory(
64 const scoped_refptr<MediaLog>& media_log); 66 const scoped_refptr<MediaLog>& media_log);
65 67
66 // Returns the CdmFactory to be used by MojoCdmService. |host_interfaces| can 68 // Returns the CdmFactory to be used by MojoCdmService. |host_interfaces| can
67 // be used to request interfaces provided remotely by the host. It may be a 69 // be used to request interfaces provided remotely by the host. It may be a
68 // nullptr if the host chose not to bind the InterfacePtr. 70 // nullptr if the host chose not to bind the InterfacePtr.
69 virtual std::unique_ptr<CdmFactory> CreateCdmFactory( 71 virtual std::unique_ptr<CdmFactory> CreateCdmFactory(
70 service_manager::mojom::InterfaceProvider* host_interfaces); 72 service_manager::mojom::InterfaceProvider* host_interfaces);
71 73
72 protected: 74 protected:
73 MojoMediaClient(); 75 MojoMediaClient();
74 }; 76 };
75 77
76 } // namespace media 78 } // namespace media
77 79
78 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ 80 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « media/mojo/services/gpu_mojo_media_client.cc ('k') | media/mojo/services/mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698