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

Side by Side Diff: chromecast/media/audio/cast_audio_manager_factory.cc

Issue 1858803002: [chromecast] Pass media task runner to MediaPipelineBackendManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Minor changes according to comments. Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromecast/media/audio/cast_audio_manager_factory.h" 5 #include "chromecast/media/audio/cast_audio_manager_factory.h"
6 6
7 #include "chromecast/media/audio/cast_audio_manager.h" 7 #include "chromecast/media/audio/cast_audio_manager.h"
8 #include "chromecast/media/cma/backend/media_pipeline_backend_manager.h"
8 9
9 namespace chromecast { 10 namespace chromecast {
10 namespace media { 11 namespace media {
11 12
12 CastAudioManagerFactory::CastAudioManagerFactory() {} 13 CastAudioManagerFactory::CastAudioManagerFactory(
14 MediaPipelineBackendManager* backend_manager)
15 : backend_manager_(backend_manager) {
16 }
13 17
14 CastAudioManagerFactory::~CastAudioManagerFactory() {} 18 CastAudioManagerFactory::~CastAudioManagerFactory() {}
15 19
16 ::media::AudioManager* CastAudioManagerFactory::CreateInstance( 20 ::media::AudioManager* CastAudioManagerFactory::CreateInstance(
17 ::media::AudioLogFactory* audio_log_factory) { 21 ::media::AudioLogFactory* audio_log_factory) {
18 return new CastAudioManager(audio_log_factory); 22 return new CastAudioManager(audio_log_factory, backend_manager_);
19 } 23 }
20 24
21 } // namespace media 25 } // namespace media
22 } // namespace chromecast 26 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/audio/cast_audio_manager_factory.h ('k') | chromecast/media/audio/cast_audio_output_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698