| 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_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // Indicates whether or not media time is currently progressing or not. Must | 249 // Indicates whether or not media time is currently progressing or not. Must |
| 250 // only be accessed from |task_runner_|. | 250 // only be accessed from |task_runner_|. |
| 251 bool time_progressing_; | 251 bool time_progressing_; |
| 252 | 252 |
| 253 // Indicates that Render() should only render the first frame and then request | 253 // Indicates that Render() should only render the first frame and then request |
| 254 // that the sink be stopped. |posted_maybe_stop_after_first_paint_| is used | 254 // that the sink be stopped. |posted_maybe_stop_after_first_paint_| is used |
| 255 // to avoid repeated task posts. | 255 // to avoid repeated task posts. |
| 256 bool render_first_frame_and_stop_; | 256 bool render_first_frame_and_stop_; |
| 257 bool posted_maybe_stop_after_first_paint_; | 257 bool posted_maybe_stop_after_first_paint_; |
| 258 | 258 |
| 259 // Memory usage of |algorithm_| recorded during the last UpdateStats_Locked() |
| 260 // call. |
| 261 int64_t last_video_memory_usage_; |
| 262 |
| 259 // NOTE: Weak pointers must be invalidated before all other member variables. | 263 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 260 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; | 264 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; |
| 261 | 265 |
| 262 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); | 266 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); |
| 263 }; | 267 }; |
| 264 | 268 |
| 265 } // namespace media | 269 } // namespace media |
| 266 | 270 |
| 267 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ | 271 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ |
| OLD | NEW |