| OLD | NEW |
| 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 #include "media/mojo/services/test_mojo_media_client.h" | 5 #include "media/mojo/services/test_mojo_media_client.h" |
| 6 | 6 |
| 7 #include "media/audio/audio_manager_base.h" | 7 #include "media/audio/audio_manager_base.h" |
| 8 #include "media/audio/audio_output_stream_sink.h" | 8 #include "media/audio/audio_output_stream_sink.h" |
| 9 #include "media/base/audio_hardware_config.h" | 9 #include "media/base/audio_hardware_config.h" |
| 10 #include "media/base/media.h" | 10 #include "media/base/media.h" |
| 11 #include "media/base/null_video_sink.h" | 11 #include "media/base/null_video_sink.h" |
| 12 #include "media/cdm/default_cdm_factory.h" | 12 #include "media/cdm/default_cdm_factory.h" |
| 13 #include "media/renderers/default_renderer_factory.h" | 13 #include "media/renderers/default_renderer_factory.h" |
| 14 #include "media/renderers/gpu_video_accelerator_factories.h" | 14 #include "media/renderers/gpu_video_accelerator_factories.h" |
| 15 | 15 |
| 16 namespace media { | 16 namespace media { |
| 17 | 17 |
| 18 TestMojoMediaClient::TestMojoMediaClient() {} | 18 TestMojoMediaClient::TestMojoMediaClient() : MojoMediaClient(nullptr) {} |
| 19 | 19 |
| 20 TestMojoMediaClient::~TestMojoMediaClient() {} | 20 TestMojoMediaClient::~TestMojoMediaClient() {} |
| 21 | 21 |
| 22 void TestMojoMediaClient::Initialize() { | 22 void TestMojoMediaClient::Initialize() { |
| 23 InitializeMediaLibrary(); | 23 InitializeMediaLibrary(); |
| 24 // TODO(dalecurtis): We should find a single owner per process for the audio | 24 // TODO(dalecurtis): We should find a single owner per process for the audio |
| 25 // manager or make it a lazy instance. It's not safe to call Get()/Create() | 25 // manager or make it a lazy instance. It's not safe to call Get()/Create() |
| 26 // across multiple threads... | 26 // across multiple threads... |
| 27 // | 27 // |
| 28 // TODO(dalecurtis): Eventually we'll want something other than a fake audio | 28 // TODO(dalecurtis): Eventually we'll want something other than a fake audio |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return video_renderer_sink_.get(); | 63 return video_renderer_sink_.get(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 scoped_ptr<CdmFactory> TestMojoMediaClient::CreateCdmFactory( | 66 scoped_ptr<CdmFactory> TestMojoMediaClient::CreateCdmFactory( |
| 67 mojo::shell::mojom::InterfaceProvider* /* interface_provider */) { | 67 mojo::shell::mojom::InterfaceProvider* /* interface_provider */) { |
| 68 DVLOG(1) << __FUNCTION__; | 68 DVLOG(1) << __FUNCTION__; |
| 69 return make_scoped_ptr(new DefaultCdmFactory()); | 69 return make_scoped_ptr(new DefaultCdmFactory()); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace media | 72 } // namespace media |
| OLD | NEW |