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

Side by Side Diff: media/base/filter_host_impl.cc

Issue 155338: Implemented injected message loops for PipelineImpl. (Closed)
Patch Set: Merged with git-svn Created 11 years, 5 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
« no previous file with comments | « media/base/filter_host_impl.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 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/base/filter_host_impl.h" 5 #include "media/base/filter_host_impl.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 void FilterHostImpl::InitializationComplete() { 9 void FilterHostImpl::InitializationComplete() {
10 pipeline_thread_->InitializationComplete(this); 10 pipeline_internal_->InitializationComplete(this);
11 } 11 }
12 12
13 void FilterHostImpl::Error(PipelineError error) { 13 void FilterHostImpl::Error(PipelineError error) {
14 pipeline_thread_->Error(error); 14 pipeline_internal_->Error(error);
15 } 15 }
16 16
17 base::TimeDelta FilterHostImpl::GetTime() const { 17 base::TimeDelta FilterHostImpl::GetTime() const {
18 return pipeline()->GetTime(); 18 return pipeline()->GetTime();
19 } 19 }
20 20
21 void FilterHostImpl::SetTime(base::TimeDelta time) { 21 void FilterHostImpl::SetTime(base::TimeDelta time) {
22 pipeline_thread_->SetTime(time); 22 pipeline_internal_->SetTime(time);
23 } 23 }
24 24
25 void FilterHostImpl::SetDuration(base::TimeDelta duration) { 25 void FilterHostImpl::SetDuration(base::TimeDelta duration) {
26 pipeline()->SetDuration(duration); 26 pipeline()->SetDuration(duration);
27 } 27 }
28 28
29 void FilterHostImpl::SetBufferedTime(base::TimeDelta buffered_time) { 29 void FilterHostImpl::SetBufferedTime(base::TimeDelta buffered_time) {
30 pipeline()->SetBufferedTime(buffered_time); 30 pipeline()->SetBufferedTime(buffered_time);
31 } 31 }
32 32
(...skipping 11 matching lines...) Expand all
44 44
45 void FilterHostImpl::Stop() { 45 void FilterHostImpl::Stop() {
46 if (!stopped_) { 46 if (!stopped_) {
47 filter_->Stop(); 47 filter_->Stop();
48 AutoLock auto_lock(time_update_lock_); 48 AutoLock auto_lock(time_update_lock_);
49 stopped_ = true; 49 stopped_ = true;
50 } 50 }
51 } 51 }
52 52
53 } // namespace media 53 } // namespace media
OLDNEW
« no previous file with comments | « media/base/filter_host_impl.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698