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

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

Issue 10918172: Remove VideoDecoder::PrepareForShutdownHack() and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 8 years, 3 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/gpu_video_decoder.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/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const PipelineStatusCB& error_cb, 61 const PipelineStatusCB& error_cb,
62 const TimeDeltaCB& get_time_cb, 62 const TimeDeltaCB& get_time_cb,
63 const TimeDeltaCB& get_duration_cb) OVERRIDE; 63 const TimeDeltaCB& get_duration_cb) OVERRIDE;
64 virtual void Play(const base::Closure& callback) OVERRIDE; 64 virtual void Play(const base::Closure& callback) OVERRIDE;
65 virtual void Pause(const base::Closure& callback) OVERRIDE; 65 virtual void Pause(const base::Closure& callback) OVERRIDE;
66 virtual void Flush(const base::Closure& callback) OVERRIDE; 66 virtual void Flush(const base::Closure& callback) OVERRIDE;
67 virtual void Preroll(base::TimeDelta time, 67 virtual void Preroll(base::TimeDelta time,
68 const PipelineStatusCB& cb) OVERRIDE; 68 const PipelineStatusCB& cb) OVERRIDE;
69 virtual void Stop(const base::Closure& callback) OVERRIDE; 69 virtual void Stop(const base::Closure& callback) OVERRIDE;
70 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; 70 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
71 virtual void PrepareForShutdownHack() OVERRIDE;
72 71
73 // PlatformThread::Delegate implementation. 72 // PlatformThread::Delegate implementation.
74 virtual void ThreadMain() OVERRIDE; 73 virtual void ThreadMain() OVERRIDE;
75 74
76 // Clients of this class (painter/compositor) should use GetCurrentFrame() 75 // Clients of this class (painter/compositor) should use GetCurrentFrame()
77 // obtain ownership of VideoFrame, it should always relinquish the ownership 76 // obtain ownership of VideoFrame, it should always relinquish the ownership
78 // by use PutCurrentFrame(). Current frame is not guaranteed to be non-NULL. 77 // by use PutCurrentFrame(). Current frame is not guaranteed to be non-NULL.
79 // It expects clients to use color-fill the background if current frame 78 // It expects clients to use color-fill the background if current frame
80 // is NULL. This could happen before pipeline is pre-rolled or during 79 // is NULL. This could happen before pipeline is pre-rolled or during
81 // pause/flush/preroll. 80 // pause/flush/preroll.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 248
250 // The last natural size |size_changed_cb_| was called with. 249 // The last natural size |size_changed_cb_| was called with.
251 gfx::Size last_natural_size_; 250 gfx::Size last_natural_size_;
252 251
253 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); 252 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase);
254 }; 253 };
255 254
256 } // namespace media 255 } // namespace media
257 256
258 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ 257 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698