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

Side by Side Diff: media/filters/video_renderer_impl.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/filters/video_frame_stream_unittest.cc ('k') | media/filters/video_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FILTERS_VIDEO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_
6 #define MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ 6 #define MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 VideoRendererImpl( 48 VideoRendererImpl(
49 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 49 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
50 ScopedVector<VideoDecoder> decoders, 50 ScopedVector<VideoDecoder> decoders,
51 const SetDecryptorReadyCB& set_decryptor_ready_cb, 51 const SetDecryptorReadyCB& set_decryptor_ready_cb,
52 bool drop_frames, 52 bool drop_frames,
53 const scoped_refptr<MediaLog>& media_log); 53 const scoped_refptr<MediaLog>& media_log);
54 ~VideoRendererImpl() override; 54 ~VideoRendererImpl() override;
55 55
56 // VideoRenderer implementation. 56 // VideoRenderer implementation.
57 void Initialize(DemuxerStream* stream, 57 void Initialize(DemuxerStream* stream,
58 bool low_delay,
59 const PipelineStatusCB& init_cb, 58 const PipelineStatusCB& init_cb,
60 const StatisticsCB& statistics_cb, 59 const StatisticsCB& statistics_cb,
61 const BufferingStateCB& buffering_state_cb, 60 const BufferingStateCB& buffering_state_cb,
62 const PaintCB& paint_cb, 61 const PaintCB& paint_cb,
63 const base::Closure& ended_cb, 62 const base::Closure& ended_cb,
64 const PipelineStatusCB& error_cb, 63 const PipelineStatusCB& error_cb,
65 const TimeDeltaCB& get_time_cb) override; 64 const TimeDeltaCB& get_time_cb) override;
66 void Flush(const base::Closure& callback) override; 65 void Flush(const base::Closure& callback) override;
67 void StartPlayingFrom(base::TimeDelta timestamp) override; 66 void StartPlayingFrom(base::TimeDelta timestamp) override;
68 67
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 204
206 // NOTE: Weak pointers must be invalidated before all other member variables. 205 // NOTE: Weak pointers must be invalidated before all other member variables.
207 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; 206 base::WeakPtrFactory<VideoRendererImpl> weak_factory_;
208 207
209 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); 208 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl);
210 }; 209 };
211 210
212 } // namespace media 211 } // namespace media
213 212
214 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ 213 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/filters/video_frame_stream_unittest.cc ('k') | media/filters/video_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698