OLD | NEW |
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 base::TimeDelta last_timestamp_; | 199 base::TimeDelta last_timestamp_; |
200 | 200 |
201 // The timestamp of the last successfully painted frame. Set to kNoTimestamp() | 201 // The timestamp of the last successfully painted frame. Set to kNoTimestamp() |
202 // during flushing. | 202 // during flushing. |
203 base::TimeDelta last_painted_timestamp_; | 203 base::TimeDelta last_painted_timestamp_; |
204 | 204 |
205 // 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 |
206 // last call to |statistics_cb_|. These must be accessed under lock. | 206 // last call to |statistics_cb_|. These must be accessed under lock. |
207 int frames_decoded_; | 207 int frames_decoded_; |
208 int frames_dropped_; | 208 int frames_dropped_; |
| 209 double frames_delay_time_; |
209 | 210 |
210 bool is_shutting_down_; | 211 bool is_shutting_down_; |
211 | 212 |
212 // NOTE: Weak pointers must be invalidated before all other member variables. | 213 // NOTE: Weak pointers must be invalidated before all other member variables. |
213 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 214 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 216 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace media | 219 } // namespace media |
219 | 220 |
220 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ | 221 #endif // MEDIA_FILTERS_VIDEO_RENDERER_IMPL_H_ |
OLD | NEW |