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

Side by Side Diff: media/base/video_renderer.h

Issue 384943002: Remove media::VideoRenderer::SetPlaybackRate(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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_BASE_VIDEO_RENDERER_H_ 5 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_
6 #define MEDIA_BASE_VIDEO_RENDERER_H_ 6 #define MEDIA_BASE_VIDEO_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Starts playback by reading from |stream| and decoding and rendering video. 68 // Starts playback by reading from |stream| and decoding and rendering video.
69 // |timestamp| is the media timestamp playback should start rendering from. 69 // |timestamp| is the media timestamp playback should start rendering from.
70 // 70 //
71 // Only valid to call after a successful Initialize() or Flush(). 71 // Only valid to call after a successful Initialize() or Flush().
72 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; 72 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0;
73 73
74 // Stop all operations in preparation for being deleted, executing |callback| 74 // Stop all operations in preparation for being deleted, executing |callback|
75 // when complete. 75 // when complete.
76 virtual void Stop(const base::Closure& callback) = 0; 76 virtual void Stop(const base::Closure& callback) = 0;
77 77
78 // Updates the current playback rate.
79 virtual void SetPlaybackRate(float playback_rate) = 0;
80
81 private: 78 private:
82 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); 79 DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
83 }; 80 };
84 81
85 } // namespace media 82 } // namespace media
86 83
87 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ 84 #endif // MEDIA_BASE_VIDEO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698