Chromium Code Reviews| 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_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 // Clients should expect |buffering_state_cb| to be called with | 75 // Clients should expect |buffering_state_cb| to be called with |
| 76 // BUFFERING_HAVE_NOTHING while flushing is in progress. | 76 // BUFFERING_HAVE_NOTHING while flushing is in progress. |
| 77 virtual void Flush(const base::Closure& callback) = 0; | 77 virtual void Flush(const base::Closure& callback) = 0; |
| 78 | 78 |
| 79 // Starts playback at |timestamp| by reading from |stream| and decoding and | 79 // Starts playback at |timestamp| by reading from |stream| and decoding and |
| 80 // rendering video. | 80 // rendering video. |
| 81 // | 81 // |
| 82 // Only valid to call after a successful Initialize() or Flush(). | 82 // Only valid to call after a successful Initialize() or Flush(). |
| 83 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; | 83 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; |
| 84 | 84 |
| 85 // Called when time starts or stops moving. Time progresses when a base time | |
| 86 // has been set and the playback rate is > 0. If either condition changes, | |
| 87 // |time_progressing| will be false. | |
|
xhwang
2015/04/07 23:57:49
Add a comment about why we need this method in the
DaleCurtis
2015/04/08 00:04:32
I'll add it to the VRI once we have such details.
| |
| 88 virtual void OnTimeStateChanged(bool time_progressing) = 0; | |
| 89 | |
| 85 private: | 90 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); | 91 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 } // namespace media | 94 } // namespace media |
| 90 | 95 |
| 91 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ | 96 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ |
| OLD | NEW |