OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 "base/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
6 #include "media/base/filter_host_impl.h" | 6 #include "media/base/filter_host_impl.h" |
7 #include "media/base/media_format.h" | 7 #include "media/base/media_format.h" |
8 #include "media/base/pipeline_impl.h" | 8 #include "media/base/pipeline_impl.h" |
9 | 9 |
10 namespace media { | 10 namespace media { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 total_bytes_ = total_bytes; | 201 total_bytes_ = total_bytes; |
202 } | 202 } |
203 | 203 |
204 void PipelineImpl::SetBufferedBytes(int64 buffered_bytes) { | 204 void PipelineImpl::SetBufferedBytes(int64 buffered_bytes) { |
205 AutoLock auto_lock(lock_); | 205 AutoLock auto_lock(lock_); |
206 buffered_bytes_ = buffered_bytes; | 206 buffered_bytes_ = buffered_bytes; |
207 } | 207 } |
208 | 208 |
209 void PipelineImpl::SetVideoSize(size_t width, size_t height) { | 209 void PipelineImpl::SetVideoSize(size_t width, size_t height) { |
210 AutoLock auto_lock(lock_); | 210 AutoLock auto_lock(lock_); |
211 width = width; | 211 video_width_ = width; |
212 height = height; | 212 video_height_ = height; |
213 } | 213 } |
214 | 214 |
215 //----------------------------------------------------------------------------- | 215 //----------------------------------------------------------------------------- |
216 | 216 |
217 PipelineThread::PipelineThread(PipelineImpl* pipeline) | 217 PipelineThread::PipelineThread(PipelineImpl* pipeline) |
218 : pipeline_(pipeline), | 218 : pipeline_(pipeline), |
219 thread_("PipelineThread"), | 219 thread_("PipelineThread"), |
220 time_update_callback_scheduled_(false), | 220 time_update_callback_scheduled_(false), |
221 host_initializing_(NULL) { | 221 host_initializing_(NULL) { |
222 } | 222 } |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 // Called as a result of destruction of the thread. | 574 // Called as a result of destruction of the thread. |
575 void PipelineThread::WillDestroyCurrentMessageLoop() { | 575 void PipelineThread::WillDestroyCurrentMessageLoop() { |
576 while (!filter_hosts_.empty()) { | 576 while (!filter_hosts_.empty()) { |
577 delete filter_hosts_.back(); | 577 delete filter_hosts_.back(); |
578 filter_hosts_.pop_back(); | 578 filter_hosts_.pop_back(); |
579 } | 579 } |
580 } | 580 } |
581 | 581 |
582 } // namespace media | 582 } // namespace media |
OLD | NEW |