| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/media/rtc_video_renderer.h" | 5 #include "content/renderer/media/rtc_video_renderer.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | |
| 8 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "base/trace_event/trace_event.h" |
| 9 #include "media/base/bind_to_current_loop.h" | 9 #include "media/base/bind_to_current_loop.h" |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| 11 #include "media/base/video_util.h" | 11 #include "media/base/video_util.h" |
| 12 | 12 |
| 13 const int kMinFrameSize = 2; | 13 const int kMinFrameSize = 2; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 RTCVideoRenderer::RTCVideoRenderer( | 17 RTCVideoRenderer::RTCVideoRenderer( |
| 18 const blink::WebMediaStreamTrack& video_track, | 18 const blink::WebMediaStreamTrack& video_track, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // It also ensure that the renderer don't hold a reference to a real video | 106 // It also ensure that the renderer don't hold a reference to a real video |
| 107 // frame if no more frames are provided. This is since there might be a | 107 // frame if no more frames are provided. This is since there might be a |
| 108 // finite number of available buffers. E.g, video that | 108 // finite number of available buffers. E.g, video that |
| 109 // originates from a video camera. | 109 // originates from a video camera. |
| 110 scoped_refptr<media::VideoFrame> video_frame = | 110 scoped_refptr<media::VideoFrame> video_frame = |
| 111 media::VideoFrame::CreateBlackFrame(frame_size_); | 111 media::VideoFrame::CreateBlackFrame(frame_size_); |
| 112 OnVideoFrame(video_frame, media::VideoCaptureFormat(), base::TimeTicks()); | 112 OnVideoFrame(video_frame, media::VideoCaptureFormat(), base::TimeTicks()); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace content | 115 } // namespace content |
| OLD | NEW |