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

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

Issue 2372863002: Rename VideoRenderer::OnTimeStateChanged to OnTime{Progressing,Stopped} (Closed)
Patch Set: fix some comments Created 4 years, 2 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/renderers/renderer_impl.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_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_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void Flush(const base::Closure& callback) = 0; 47 virtual void Flush(const base::Closure& callback) = 0;
48 48
49 // Starts playback at |timestamp| by reading from |stream| and decoding and 49 // Starts playback at |timestamp| by reading from |stream| and decoding and
50 // rendering video. 50 // rendering video.
51 // 51 //
52 // Only valid to call after a successful Initialize() or Flush(). 52 // Only valid to call after a successful Initialize() or Flush().
53 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; 53 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0;
54 54
55 // Called when time starts or stops moving. Time progresses when a base time 55 // Called when time starts or stops moving. Time progresses when a base time
56 // has been set and the playback rate is > 0. If either condition changes, 56 // has been set and the playback rate is > 0. If either condition changes,
57 // |time_progressing| will be false. 57 // time stops progressing.
58 virtual void OnTimeStateChanged(bool time_progressing) = 0; 58 virtual void TimeStartedProgressing() = 0;
DaleCurtis 2016/09/27 17:12:25 OnTimeProgressing(), OnTimeStopped() ?
59 virtual void TimeStoppedProgressing() = 0;
59 60
60 private: 61 private:
61 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); 62 DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
62 }; 63 };
63 64
64 } // namespace media 65 } // namespace media
65 66
66 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ 67 #endif // MEDIA_BASE_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698