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

Unified Diff: chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc

Issue 1845783002: [chromecast] Pass media task runner to MediaPipelineBackendManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: minor fixes Created 4 years, 9 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 | « chromecast/media/cma/backend/media_pipeline_backend_wrapper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc
diff --git a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc
index ef8609982926a16a5134b9ebd71643647461dcb8..4cd53ea508cda3ddef088ccd646e39294b815a56 100644
--- a/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc
+++ b/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc
@@ -11,19 +11,21 @@ namespace chromecast {
namespace media {
MediaPipelineBackendWrapper::MediaPipelineBackendWrapper(
- MediaPipelineBackend* backend,
+ scoped_ptr<MediaPipelineBackend> backend,
int stream_type,
- float stream_type_volume)
- : backend_(backend),
+ float stream_type_volume,
+ MediaPipelineBackendManager* backend_manager)
+ : backend_(std::move(backend)),
stream_type_(stream_type),
audio_decoder_wrapper_(nullptr),
stream_type_volume_(stream_type_volume),
- is_initialized_(false) {
+ is_initialized_(false),
+ backend_manager_(backend_manager) {
DCHECK(backend_);
}
MediaPipelineBackendWrapper::~MediaPipelineBackendWrapper() {
- MediaPipelineBackendManager::OnMediaPipelineBackendDestroyed(this);
+ backend_manager_->OnMediaPipelineBackendDestroyed(this);
}
MediaPipelineBackend::AudioDecoder*
« no previous file with comments | « chromecast/media/cma/backend/media_pipeline_backend_wrapper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698