OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // VideoRendererBase creates its own thread for the sole purpose of timing frame | 5 // VideoRendererBase creates its own thread for the sole purpose of timing frame |
6 // presentation. It handles reading from the decoder and stores the results in | 6 // presentation. It handles reading from the decoder and stores the results in |
7 // a queue of decoded frames, calling OnFrameAvailable() on subclasses to notify | 7 // a queue of decoded frames, calling OnFrameAvailable() on subclasses to notify |
8 // when a frame is ready to display. | 8 // when a frame is ready to display. |
9 // | 9 // |
10 // The media filter methods Initialize(), Stop(), SetPlaybackRate() and Seek() | 10 // The media filter methods Initialize(), Stop(), SetPlaybackRate() and Seek() |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // We use size_t since we compare against std::deque::size(). | 174 // We use size_t since we compare against std::deque::size(). |
175 size_t pending_reads_; | 175 size_t pending_reads_; |
176 bool pending_paint_; | 176 bool pending_paint_; |
177 | 177 |
178 float playback_rate_; | 178 float playback_rate_; |
179 | 179 |
180 // Filter callbacks. | 180 // Filter callbacks. |
181 scoped_ptr<FilterCallback> pause_callback_; | 181 scoped_ptr<FilterCallback> pause_callback_; |
182 scoped_ptr<FilterCallback> seek_callback_; | 182 scoped_ptr<FilterCallback> seek_callback_; |
183 | 183 |
| 184 base::TimeDelta seek_timestamp_; |
| 185 |
184 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); | 186 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); |
185 }; | 187 }; |
186 | 188 |
187 } // namespace media | 189 } // namespace media |
188 | 190 |
189 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ | 191 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ |
OLD | NEW |