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

Side by Side Diff: chromecast/media/cma/backend/media_pipeline_backend_factory.cc

Issue 2879703003: [chromecast] Moves CastAudioOutputStream::Backend to CMA thread. (Closed)
Patch Set: addressed comments Created 3 years, 6 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromecast/media/cma/backend/media_pipeline_backend_factory.h"
6
7 #include "chromecast/media/cma/backend/media_pipeline_backend_manager.h"
8 #include "chromecast/public/media/media_pipeline_backend.h"
9 #include "chromecast/public/media/media_pipeline_device_params.h"
10
11 namespace chromecast {
12 namespace media {
13
14 MediaPipelineBackendFactory::MediaPipelineBackendFactory(
15 MediaPipelineBackendManager* media_pipeline_backend_manager)
16 : media_pipeline_backend_manager_(media_pipeline_backend_manager) {
17 DCHECK(media_pipeline_backend_manager_);
18 }
19
20 MediaPipelineBackendFactory::~MediaPipelineBackendFactory() {}
21
22 std::unique_ptr<MediaPipelineBackend>
23 MediaPipelineBackendFactory::CreateBackend(
24 const MediaPipelineDeviceParams& params) {
25 return media_pipeline_backend_manager_->CreateMediaPipelineBackend(params);
26 }
27
28 } // namespace media
29 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698