Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/filters/clockless_video_frame_scheduler.h" | |
| 6 | |
| 7 #include "media/base/video_frame.h" | |
| 8 | |
| 9 namespace media { | |
| 10 | |
| 11 ClocklessVideoFrameScheduler::ClocklessVideoFrameScheduler( | |
| 12 const DisplayCB& display_cb) | |
| 13 : display_cb_(display_cb) { | |
| 14 } | |
| 15 | |
| 16 ClocklessVideoFrameScheduler::~ClocklessVideoFrameScheduler() { | |
| 17 } | |
| 18 | |
| 19 void ClocklessVideoFrameScheduler::ScheduleVideoFrame( | |
| 20 const scoped_refptr<VideoFrame>& frame, | |
| 21 base::TimeTicks wall_ticks, | |
| 22 const DoneCB& done_cb) { | |
| 23 display_cb_.Run(frame); | |
| 24 done_cb.Run(frame, DISPLAYED); | |
|
acolwell GONE FROM CHROMIUM
2014/04/24 16:43:59
Shouldn't this be a PostTask() to avoid reentrancy
scherkus (not reviewing)
2014/04/25 02:04:47
Done.
| |
| 25 } | |
| 26 | |
| 27 void ClocklessVideoFrameScheduler::Reset() { | |
| 28 } | |
| 29 | |
| 30 } // namespace media | |
| OLD | NEW |