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

Side by Side Diff: media/filters/video_renderer_impl.h

Issue 475863002: VideoRendererImpl: Delay report of BUFFERING_HAVE_NOTHING. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 6 years, 4 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 | Annotate | Revision Log
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 base::TimeDelta start_timestamp_; 191 base::TimeDelta start_timestamp_;
192 192
193 // Embedder callback for notifying a new frame is available for painting. 193 // Embedder callback for notifying a new frame is available for painting.
194 PaintCB paint_cb_; 194 PaintCB paint_cb_;
195 195
196 // The timestamp of the last frame removed from the |ready_frames_| queue, 196 // The timestamp of the last frame removed from the |ready_frames_| queue,
197 // either for calling |paint_cb_| or for dropping. Set to kNoTimestamp() 197 // either for calling |paint_cb_| or for dropping. Set to kNoTimestamp()
198 // during flushing. 198 // during flushing.
199 base::TimeDelta last_timestamp_; 199 base::TimeDelta last_timestamp_;
200 200
201 // The timestamp of the last successfully painted frame. Set to kNoTimestamp()
202 // during flushing.
203 base::TimeDelta last_painted_timestamp_;
204
201 // Keeps track of the number of frames decoded and dropped since the 205 // Keeps track of the number of frames decoded and dropped since the
202 // last call to |statistics_cb_|. These must be accessed under lock. 206 // last call to |statistics_cb_|. These must be accessed under lock.
203 int frames_decoded_; 207 int frames_decoded_;
204 int frames_dropped_; 208 int frames_dropped_;
205 209
206 bool is_shutting_down_; 210 bool is_shutting_down_;
207 211
208 // NOTE: Weak pointers must be invalidated before all other member variables. 212 // NOTE: Weak pointers must be invalidated before all other member variables.
209 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; 213 base::WeakPtrFactory<VideoRendererImpl> weak_factory_;
210 214
211 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); 215 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl);
212 }; 216 };
213 217
214 } // namespace media 218 } // namespace media
215 219
216 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ 220 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/video_renderer_impl.cc » ('j') | media/filters/video_renderer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698