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

Side by Side Diff: media/filters/clockless_video_frame_scheduler.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, 7 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 "base/bind.h"
8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "media/base/video_frame.h"
11
12 namespace media {
13
14 ClocklessVideoFrameScheduler::ClocklessVideoFrameScheduler(
15 const DisplayCB& display_cb)
16 : display_cb_(display_cb) {
17 }
18
19 ClocklessVideoFrameScheduler::~ClocklessVideoFrameScheduler() {
20 }
21
22 void ClocklessVideoFrameScheduler::ScheduleVideoFrame(
23 const scoped_refptr<VideoFrame>& frame,
24 base::TimeTicks /* wall_ticks */,
25 const DoneCB& done_cb) {
26 display_cb_.Run(frame);
27 base::MessageLoopProxy::current()->PostTask(
28 FROM_HERE, base::Bind(done_cb, frame, DISPLAYED));
29 }
30
31 void ClocklessVideoFrameScheduler::Reset() {
32 }
33
34 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/clockless_video_frame_scheduler.h ('k') | media/filters/test_video_frame_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698