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

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

Issue 2966643002: media: Plumb MediaLog to MojoVideoDecoderService. (Closed)
Patch Set: Swap client/service directory. Created 3 years, 5 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
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // |this| to connect to other services. It is guaranteed to outlive |this|. 56 // |this| to connect to other services. It is guaranteed to outlive |this|.
57 virtual void Initialize(service_manager::Connector* connector); 57 virtual void Initialize(service_manager::Connector* connector);
58 58
59 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder( 59 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder(
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 60 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
61 61
62 // TODO(sandersd): |output_cb| should not be required. 62 // TODO(sandersd): |output_cb| should not be required.
63 // See https://crbug.com/733828. 63 // See https://crbug.com/733828.
64 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( 64 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder(
65 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
66 MediaLog* media_log,
66 mojom::CommandBufferIdPtr command_buffer_id, 67 mojom::CommandBufferIdPtr command_buffer_id,
67 OutputWithReleaseMailboxCB output_cb); 68 OutputWithReleaseMailboxCB output_cb);
68 69
69 // Returns the output sink used for rendering audio on |audio_device_id|. 70 // Returns the output sink used for rendering audio on |audio_device_id|.
70 // May be null if the RendererFactory doesn't need an audio sink. 71 // May be null if the RendererFactory doesn't need an audio sink.
71 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink( 72 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink(
72 const std::string& audio_device_id); 73 const std::string& audio_device_id);
73 74
74 // Returns the output sink used for rendering video. 75 // Returns the output sink used for rendering video.
75 // May be null if the RendererFactory doesn't need a video sink. 76 // May be null if the RendererFactory doesn't need a video sink.
(...skipping 10 matching lines...) Expand all
86 virtual std::unique_ptr<CdmFactory> CreateCdmFactory( 87 virtual std::unique_ptr<CdmFactory> CreateCdmFactory(
87 service_manager::mojom::InterfaceProvider* host_interfaces); 88 service_manager::mojom::InterfaceProvider* host_interfaces);
88 89
89 protected: 90 protected:
90 MojoMediaClient(); 91 MojoMediaClient();
91 }; 92 };
92 93
93 } // namespace media 94 } // namespace media
94 95
95 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ 96 #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