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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 PipelineStatusCB& 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(const scoped_refptr<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; |
66 | 66 |
67 // Clients of this class (painter/compositor) should use GetCurrentFrame() | 67 // Clients of this class (painter/compositor) should use GetCurrentFrame() |
68 // obtain ownership of VideoFrame, it should always relinquish the ownership | 68 // obtain ownership of VideoFrame, it should always relinquish the ownership |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |