Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: media/filters/video_renderer_base.h

Issue 9310028: Update AudioRenderer, VideoRenderer, and AudioDecoder Initialize() methods to use PipelineStatusCB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix AudioRendererImplTest Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/ffmpeg_audio_decoder_unittest.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Filter implementation. 46 // Filter implementation.
47 virtual void Play(const base::Closure& callback) OVERRIDE; 47 virtual void Play(const base::Closure& callback) OVERRIDE;
48 virtual void Pause(const base::Closure& callback) OVERRIDE; 48 virtual void Pause(const base::Closure& callback) OVERRIDE;
49 virtual void Flush(const base::Closure& callback) OVERRIDE; 49 virtual void Flush(const base::Closure& callback) OVERRIDE;
50 virtual void Stop(const base::Closure& callback) OVERRIDE; 50 virtual void Stop(const base::Closure& callback) OVERRIDE;
51 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; 51 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
52 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE; 52 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb) OVERRIDE;
53 53
54 // VideoRenderer implementation. 54 // VideoRenderer implementation.
55 virtual void Initialize(VideoDecoder* decoder, 55 virtual void Initialize(VideoDecoder* decoder,
56 const base::Closure& callback, 56 const PipelineStatusCB& callback,
57 const StatisticsCallback& stats_callback) OVERRIDE; 57 const StatisticsCallback& stats_callback) OVERRIDE;
58 virtual bool HasEnded() OVERRIDE; 58 virtual bool HasEnded() OVERRIDE;
59 59
60 // PlatformThread::Delegate implementation. 60 // PlatformThread::Delegate implementation.
61 virtual void ThreadMain() OVERRIDE; 61 virtual void ThreadMain() OVERRIDE;
62 62
63 // Clients of this class (painter/compositor) should use GetCurrentFrame() 63 // Clients of this class (painter/compositor) should use GetCurrentFrame()
64 // obtain ownership of VideoFrame, it should always relinquish the ownership 64 // obtain ownership of VideoFrame, it should always relinquish the ownership
65 // by use PutCurrentFrame(). Current frame is not guaranteed to be non-NULL. 65 // by use PutCurrentFrame(). Current frame is not guaranteed to be non-NULL.
66 // It expects clients to use color-fill the background if current frame 66 // It expects clients to use color-fill the background if current frame
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Callback to execute to inform the player if the video decoder's output is 195 // Callback to execute to inform the player if the video decoder's output is
196 // opaque. 196 // opaque.
197 SetOpaqueCB set_opaque_cb_; 197 SetOpaqueCB set_opaque_cb_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); 199 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase);
200 }; 200 };
201 201
202 } // namespace media 202 } // namespace media
203 203
204 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ 204 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_audio_decoder_unittest.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698