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 #include "webkit/renderer/media/simple_video_frame_provider.h" | 5 #include "webkit/renderer/media/simple_video_frame_provider.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
11 | 11 |
12 namespace webkit_media { | 12 namespace webkit_media { |
13 | 13 |
14 SimpleVideoFrameProvider::SimpleVideoFrameProvider( | 14 SimpleVideoFrameProvider::SimpleVideoFrameProvider( |
15 const gfx::Size& size, | 15 const gfx::Size& size, |
16 const base::TimeDelta& frame_duration, | 16 const base::TimeDelta& frame_duration, |
17 const base::Closure& error_cb, | 17 const base::Closure& error_cb, |
18 const VideoFrameProvider::RepaintCB& repaint_cb) | 18 const VideoFrameProvider::RepaintCB& repaint_cb) |
19 : message_loop_proxy_(base::MessageLoopProxy::current()), | 19 : message_loop_proxy_(base::MessageLoopProxy::current()), |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 current_time_ += frame_duration_; | 76 current_time_ += frame_duration_; |
77 message_loop_proxy_->PostDelayedTask( | 77 message_loop_proxy_->PostDelayedTask( |
78 FROM_HERE, | 78 FROM_HERE, |
79 base::Bind(&SimpleVideoFrameProvider::GenerateFrame, this), | 79 base::Bind(&SimpleVideoFrameProvider::GenerateFrame, this), |
80 frame_duration_); | 80 frame_duration_); |
81 } | 81 } |
82 | 82 |
83 } // namespace webkit_media | 83 } // namespace webkit_media |
OLD | NEW |