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

Side by Side Diff: media/filters/clockless_video_frame_scheduler.cc

Issue 237353007: Refactor VideoRendererImpl to use VideoFrameScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pretty much done 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698