OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_PIPELINE_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_H_ |
6 #define MEDIA_BASE_PIPELINE_H_ | 6 #define MEDIA_BASE_PIPELINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 class TextTrackConfig; | 34 class TextTrackConfig; |
35 class VideoRenderer; | 35 class VideoRenderer; |
36 | 36 |
37 // Metadata describing a pipeline once it has been initialized. | 37 // Metadata describing a pipeline once it has been initialized. |
38 struct PipelineMetadata { | 38 struct PipelineMetadata { |
39 PipelineMetadata() : has_audio(false), has_video(false) {} | 39 PipelineMetadata() : has_audio(false), has_video(false) {} |
40 | 40 |
41 bool has_audio; | 41 bool has_audio; |
42 bool has_video; | 42 bool has_video; |
43 gfx::Size natural_size; | 43 gfx::Size natural_size; |
| 44 base::Time timeline_offset; |
44 }; | 45 }; |
45 | 46 |
46 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; | 47 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; |
47 | 48 |
48 // Pipeline runs the media pipeline. Filters are created and called on the | 49 // Pipeline runs the media pipeline. Filters are created and called on the |
49 // task runner injected into this object. Pipeline works like a state | 50 // task runner injected into this object. Pipeline works like a state |
50 // machine to perform asynchronous initialization, pausing, seeking and playing. | 51 // machine to perform asynchronous initialization, pausing, seeking and playing. |
51 // | 52 // |
52 // Here's a state diagram that describes the lifetime of this object. | 53 // Here's a state diagram that describes the lifetime of this object. |
53 // | 54 // |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 scoped_ptr<SerialRunner> pending_callbacks_; | 422 scoped_ptr<SerialRunner> pending_callbacks_; |
422 | 423 |
423 base::ThreadChecker thread_checker_; | 424 base::ThreadChecker thread_checker_; |
424 | 425 |
425 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 426 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
426 }; | 427 }; |
427 | 428 |
428 } // namespace media | 429 } // namespace media |
429 | 430 |
430 #endif // MEDIA_BASE_PIPELINE_H_ | 431 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |