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

Unified Diff: media/filters/video_frame_scheduler_impl.cc

Issue 257793004: Update VideoFrameScheduler API and add clockless and testing implementations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/video_frame_scheduler.h ('k') | media/filters/video_frame_scheduler_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_scheduler_impl.cc
diff --git a/media/filters/video_frame_scheduler_impl.cc b/media/filters/video_frame_scheduler_impl.cc
index a50516446afeb7a7cc57e6f3ed7ac4bab1662906..ee06bb1cd96b7dbc70517ec061b2c1b572315f24 100644
--- a/media/filters/video_frame_scheduler_impl.cc
+++ b/media/filters/video_frame_scheduler_impl.cc
@@ -34,11 +34,8 @@ void VideoFrameSchedulerImpl::ScheduleVideoFrame(
}
void VideoFrameSchedulerImpl::Reset() {
- DCHECK(task_runner_->BelongsToCurrentThread());
- while (!pending_frames_.empty()) {
- pending_frames_.top().done_cb.Run(pending_frames_.top().frame, RESET);
- pending_frames_.pop();
- }
+ pending_frames_ = PendingFrameQueue();
+ timer_.Stop();
}
void VideoFrameSchedulerImpl::SetTickClockForTesting(
« no previous file with comments | « media/filters/video_frame_scheduler.h ('k') | media/filters/video_frame_scheduler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698