| 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 ticking and the playback rate is greater than 0. |
| 86 virtual void OnTimeProgressing() = 0; |
| 87 |
| 88 // Called when time stops ticking or the playback rate is zero. |
| 89 virtual void OnTimeStopped() = 0; |
| 90 |
| 85 private: | 91 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); | 92 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); |
| 87 }; | 93 }; |
| 88 | 94 |
| 89 } // namespace media | 95 } // namespace media |
| 90 | 96 |
| 91 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ | 97 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ |
| OLD | NEW |