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

Unified Diff: media/mojo/services/utility_mojo_media_client.h

Issue 2643713003: Allow to use the DefaultRendererFactory from a Utility Process (Closed)
Patch Set: Rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/test_mojo_media_client.cc ('k') | media/mojo/services/utility_mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/utility_mojo_media_client.h
diff --git a/media/mojo/services/utility_mojo_media_client.h b/media/mojo/services/utility_mojo_media_client.h
index ec8560186f085aa400427e13ccf41f36b80f9e2a..232df49ab86c0075c0b38fc57705363761746c8e 100644
--- a/media/mojo/services/utility_mojo_media_client.h
+++ b/media/mojo/services/utility_mojo_media_client.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "base/single_thread_task_runner.h"
#include "media/mojo/services/mojo_media_client.h"
namespace base {
@@ -20,14 +21,24 @@ class VideoDecoder;
// Default MojoMediaClient for MediaService.
class UtilityMojoMediaClient : public MojoMediaClient {
public:
- UtilityMojoMediaClient();
+ UtilityMojoMediaClient(
+ scoped_refptr<base::SingleThreadTaskRunner> utility_task_runner);
~UtilityMojoMediaClient() final;
// MojoMediaClient implementation.
void Initialize(service_manager::Connector* connector) final;
+ scoped_refptr<AudioRendererSink> CreateAudioRendererSink(
+ const std::string& audio_device_id) final;
+ std::unique_ptr<VideoRendererSink> CreateVideoRendererSink(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) final;
std::unique_ptr<VideoDecoder> CreateVideoDecoder(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
mojom::CommandBufferIdPtr command_buffer_id) final;
+ std::unique_ptr<RendererFactory> CreateRendererFactory(
+ const scoped_refptr<MediaLog>& media_log) final;
+
+ private:
+ scoped_refptr<base::SingleThreadTaskRunner> utility_task_runner_;
DISALLOW_COPY_AND_ASSIGN(UtilityMojoMediaClient);
};
« no previous file with comments | « media/mojo/services/test_mojo_media_client.cc ('k') | media/mojo/services/utility_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698