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

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

Issue 692323002: Move Liveness from DemuxerStreamProvider to DemuxerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mojo Created 6 years, 1 month 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_parser.cc ('k') | media/filters/audio_decoder_selector_unittest.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.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // 42 //
43 // |paint_cb| is executed on the video frame timing thread whenever a new 43 // |paint_cb| is executed on the video frame timing thread whenever a new
44 // frame is available for painting. Can be called from any thread. 44 // frame is available for painting. Can be called from any thread.
45 // 45 //
46 // |ended_cb| is executed when video rendering has reached the end of stream. 46 // |ended_cb| is executed when video rendering has reached the end of stream.
47 // 47 //
48 // |error_cb| is executed if an error was encountered. 48 // |error_cb| is executed if an error was encountered.
49 // 49 //
50 // |get_time_cb| is used to query the current media playback time. 50 // |get_time_cb| is used to query the current media playback time.
51 virtual void Initialize(DemuxerStream* stream, 51 virtual void Initialize(DemuxerStream* stream,
52 bool low_delay,
53 const PipelineStatusCB& init_cb, 52 const PipelineStatusCB& init_cb,
54 const StatisticsCB& statistics_cb, 53 const StatisticsCB& statistics_cb,
55 const BufferingStateCB& buffering_state_cb, 54 const BufferingStateCB& buffering_state_cb,
56 const PaintCB& paint_cb, 55 const PaintCB& paint_cb,
57 const base::Closure& ended_cb, 56 const base::Closure& ended_cb,
58 const PipelineStatusCB& error_cb, 57 const PipelineStatusCB& error_cb,
59 const TimeDeltaCB& get_time_cb) = 0; 58 const TimeDeltaCB& get_time_cb) = 0;
60 59
61 // Discards any video data and stops reading from |stream|, executing 60 // Discards any video data and stops reading from |stream|, executing
62 // |callback| when completed. 61 // |callback| when completed.
63 // 62 //
64 // Clients should expect |buffering_state_cb| to be called with 63 // Clients should expect |buffering_state_cb| to be called with
65 // BUFFERING_HAVE_NOTHING while flushing is in progress. 64 // BUFFERING_HAVE_NOTHING while flushing is in progress.
66 virtual void Flush(const base::Closure& callback) = 0; 65 virtual void Flush(const base::Closure& callback) = 0;
67 66
68 // Starts playback at |timestamp| by reading from |stream| and decoding and 67 // Starts playback at |timestamp| by reading from |stream| and decoding and
69 // rendering video. 68 // rendering video.
70 // 69 //
71 // Only valid to call after a successful Initialize() or Flush(). 70 // Only valid to call after a successful Initialize() or Flush().
72 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0; 71 virtual void StartPlayingFrom(base::TimeDelta timestamp) = 0;
73 72
74 private: 73 private:
75 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); 74 DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
76 }; 75 };
77 76
78 } // namespace media 77 } // namespace media
79 78
80 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ 79 #endif // MEDIA_BASE_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/base/stream_parser.cc ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698