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

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

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: 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/stream_position.cc ('k') | media/blink/webmediaplayer_impl.h » ('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"
11 #include "media/base/pipeline_status.h" 11 #include "media/base/pipeline_status.h"
12 #include "media/base/stream_position.h"
12 #include "media/base/time_source.h" 13 #include "media/base/time_source.h"
13 14
14 namespace media { 15 namespace media {
15 16
16 class CdmContext; 17 class CdmContext;
17 class DemuxerStream; 18 class DemuxerStream;
18 class RendererClient; 19 class RendererClient;
19 20
20 class MEDIA_EXPORT VideoRenderer { 21 class MEDIA_EXPORT VideoRenderer {
21 public: 22 public:
(...skipping 21 matching lines...) Expand all
43 // |callback| when completed. 44 // |callback| when completed.
44 // 45 //
45 // Clients should expect |buffering_state_cb| to be called with 46 // Clients should expect |buffering_state_cb| to be called with
46 // BUFFERING_HAVE_NOTHING while flushing is in progress. 47 // BUFFERING_HAVE_NOTHING while flushing is in progress.
47 virtual void Flush(const base::Closure& callback) = 0; 48 virtual void Flush(const base::Closure& callback) = 0;
48 49
49 // Starts playback at |timestamp| by reading from |stream| and decoding and 50 // Starts playback at |timestamp| by reading from |stream| and decoding and
50 // rendering video. 51 // rendering video.
51 // 52 //
52 // Only valid to call after a successful Initialize() or Flush(). 53 // Only valid to call after a successful Initialize() or Flush().
53 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; 54 virtual void StartPlayingFrom(StreamPosition position) = 0;
54 55
55 // Called when time starts or stops moving. Time progresses when a base time 56 // 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, 57 // has been set and the playback rate is > 0. If either condition changes,
57 // |time_progressing| will be false. 58 // |time_progressing| will be false.
58 virtual void OnTimeStateChanged(bool time_progressing) = 0; 59 virtual void OnTimeStateChanged(bool time_progressing) = 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/stream_position.cc ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698