| OLD | NEW |
| 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 // Implementation of Pipeline. | 5 // Implementation of Pipeline. |
| 6 | 6 |
| 7 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ | 7 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ |
| 8 #define MEDIA_BASE_PIPELINE_IMPL_H_ | 8 #define MEDIA_BASE_PIPELINE_IMPL_H_ |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // Current playback rate (>= 0.0f). This value is set immediately via | 301 // Current playback rate (>= 0.0f). This value is set immediately via |
| 302 // SetPlaybackRate() and a task is dispatched on the message loop to notify | 302 // SetPlaybackRate() and a task is dispatched on the message loop to notify |
| 303 // the filters. | 303 // the filters. |
| 304 float playback_rate_; | 304 float playback_rate_; |
| 305 | 305 |
| 306 // Reference clock. Keeps track of current playback time. Uses system | 306 // Reference clock. Keeps track of current playback time. Uses system |
| 307 // clock and linear interpolation, but can have its time manually set | 307 // clock and linear interpolation, but can have its time manually set |
| 308 // by filters. | 308 // by filters. |
| 309 ClockImpl clock_; | 309 ClockImpl clock_; |
| 310 | 310 |
| 311 // If this value is set to true, then |clock_| is paused and we are waiting |
| 312 // for an update of the clock greater than or equal to the elapsed time to |
| 313 // start the clock. |
| 314 bool waiting_for_clock_update_; |
| 315 |
| 311 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that | 316 // Status of the pipeline. Initialized to PIPELINE_OK which indicates that |
| 312 // the pipeline is operating correctly. Any other value indicates that the | 317 // the pipeline is operating correctly. Any other value indicates that the |
| 313 // pipeline is stopped or is stopping. Clients can call the Stop() method to | 318 // pipeline is stopped or is stopping. Clients can call the Stop() method to |
| 314 // reset the pipeline state, and restore this to PIPELINE_OK. | 319 // reset the pipeline state, and restore this to PIPELINE_OK. |
| 315 PipelineError error_; | 320 PipelineError error_; |
| 316 | 321 |
| 317 // Vector of major mime types that have been rendered by this pipeline. | 322 // Vector of major mime types that have been rendered by this pipeline. |
| 318 typedef std::set<std::string> RenderedMimeTypesSet; | 323 typedef std::set<std::string> RenderedMimeTypesSet; |
| 319 RenderedMimeTypesSet rendered_mime_types_; | 324 RenderedMimeTypesSet rendered_mime_types_; |
| 320 | 325 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // Vector of threads owned by the pipeline and being used by filters. | 362 // Vector of threads owned by the pipeline and being used by filters. |
| 358 typedef std::vector<base::Thread*> FilterThreadVector; | 363 typedef std::vector<base::Thread*> FilterThreadVector; |
| 359 FilterThreadVector filter_threads_; | 364 FilterThreadVector filter_threads_; |
| 360 | 365 |
| 361 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 366 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 362 }; | 367 }; |
| 363 | 368 |
| 364 } // namespace media | 369 } // namespace media |
| 365 | 370 |
| 366 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 371 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |