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

Side by Side Diff: media/renderers/renderer_impl.h

Issue 1068593003: Introduce TimeSource notifications to the VideoRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Single call. Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERERS_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 PipelineStatusCB init_cb_; 147 PipelineStatusCB init_cb_;
148 base::Closure flush_cb_; 148 base::Closure flush_cb_;
149 149
150 scoped_ptr<AudioRenderer> audio_renderer_; 150 scoped_ptr<AudioRenderer> audio_renderer_;
151 scoped_ptr<VideoRenderer> video_renderer_; 151 scoped_ptr<VideoRenderer> video_renderer_;
152 152
153 // Renderer-provided time source used to control playback. 153 // Renderer-provided time source used to control playback.
154 TimeSource* time_source_; 154 TimeSource* time_source_;
155 scoped_ptr<WallClockTimeSource> wall_clock_time_source_; 155 scoped_ptr<WallClockTimeSource> wall_clock_time_source_;
156 bool time_ticking_; 156 bool time_ticking_;
157 float playback_rate_;
157 158
158 // The time to start playback from after starting/seeking has completed. 159 // The time to start playback from after starting/seeking has completed.
159 base::TimeDelta start_time_; 160 base::TimeDelta start_time_;
160 161
161 BufferingState audio_buffering_state_; 162 BufferingState audio_buffering_state_;
162 BufferingState video_buffering_state_; 163 BufferingState video_buffering_state_;
163 164
164 // Whether we've received the audio/video ended events. 165 // Whether we've received the audio/video ended events.
165 bool audio_ended_; 166 bool audio_ended_;
166 bool video_ended_; 167 bool video_ended_;
(...skipping 20 matching lines...) Expand all
187 188
188 base::WeakPtr<RendererImpl> weak_this_; 189 base::WeakPtr<RendererImpl> weak_this_;
189 base::WeakPtrFactory<RendererImpl> weak_factory_; 190 base::WeakPtrFactory<RendererImpl> weak_factory_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(RendererImpl); 192 DISALLOW_COPY_AND_ASSIGN(RendererImpl);
192 }; 193 };
193 194
194 } // namespace media 195 } // namespace media
195 196
196 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ 197 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698