| 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_FILTERS_VIDEO_RENDERER_BASE_H_ | 5 #ifndef MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ |
| 6 #define MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ | 6 #define MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const SetOpaqueCB& set_opaque_cb, | 45 const SetOpaqueCB& set_opaque_cb, |
| 46 bool drop_frames); | 46 bool drop_frames); |
| 47 virtual ~VideoRendererBase(); | 47 virtual ~VideoRendererBase(); |
| 48 | 48 |
| 49 // Filter implementation. | 49 // Filter implementation. |
| 50 virtual void Play(const base::Closure& callback) OVERRIDE; | 50 virtual void Play(const base::Closure& callback) OVERRIDE; |
| 51 virtual void Pause(const base::Closure& callback) OVERRIDE; | 51 virtual void Pause(const base::Closure& callback) OVERRIDE; |
| 52 virtual void Flush(const base::Closure& callback) OVERRIDE; | 52 virtual void Flush(const base::Closure& callback) OVERRIDE; |
| 53 virtual void Stop(const base::Closure& callback) OVERRIDE; | 53 virtual void Stop(const base::Closure& callback) OVERRIDE; |
| 54 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; | 54 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; |
| 55 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; | 55 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; |
| 56 | 56 |
| 57 // VideoRenderer implementation. | 57 // VideoRenderer implementation. |
| 58 virtual void Initialize(VideoDecoder* decoder, | 58 virtual void Initialize(VideoDecoder* decoder, |
| 59 const PipelineStatusCB& status_cb, | 59 const PipelineStatusCB& status_cb, |
| 60 const StatisticsCB& statistics_cb, | 60 const StatisticsCB& statistics_cb, |
| 61 const TimeCB& time_cb) OVERRIDE; | 61 const TimeCB& time_cb) OVERRIDE; |
| 62 virtual bool HasEnded() OVERRIDE; | 62 virtual bool HasEnded() OVERRIDE; |
| 63 | 63 |
| 64 // PlatformThread::Delegate implementation. | 64 // PlatformThread::Delegate implementation. |
| 65 virtual void ThreadMain() OVERRIDE; | 65 virtual void ThreadMain() OVERRIDE; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool pending_read_; | 181 bool pending_read_; |
| 182 bool pending_paint_; | 182 bool pending_paint_; |
| 183 bool pending_paint_with_last_available_; | 183 bool pending_paint_with_last_available_; |
| 184 | 184 |
| 185 bool drop_frames_; | 185 bool drop_frames_; |
| 186 | 186 |
| 187 float playback_rate_; | 187 float playback_rate_; |
| 188 | 188 |
| 189 // Filter callbacks. | 189 // Filter callbacks. |
| 190 base::Closure flush_cb_; | 190 base::Closure flush_cb_; |
| 191 FilterStatusCB seek_cb_; | 191 PipelineStatusCB seek_cb_; |
| 192 StatisticsCB statistics_cb_; | 192 StatisticsCB statistics_cb_; |
| 193 TimeCB time_cb_; | 193 TimeCB time_cb_; |
| 194 | 194 |
| 195 base::TimeDelta seek_timestamp_; | 195 base::TimeDelta seek_timestamp_; |
| 196 | 196 |
| 197 VideoDecoder::ReadCB read_cb_; | 197 VideoDecoder::ReadCB read_cb_; |
| 198 | 198 |
| 199 // Embedder callback for notifying a new frame is available for painting. | 199 // Embedder callback for notifying a new frame is available for painting. |
| 200 base::Closure paint_cb_; | 200 base::Closure paint_cb_; |
| 201 | 201 |
| 202 // Callback to execute to inform the player if the video decoder's output is | 202 // Callback to execute to inform the player if the video decoder's output is |
| 203 // opaque. | 203 // opaque. |
| 204 SetOpaqueCB set_opaque_cb_; | 204 SetOpaqueCB set_opaque_cb_; |
| 205 | 205 |
| 206 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); | 206 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 } // namespace media | 209 } // namespace media |
| 210 | 210 |
| 211 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ | 211 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ |
| OLD | NEW |