| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/webrtc/media_stream_remote_video_source.h" | 5 #include "content/renderer/media/webrtc/media_stream_remote_video_source.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/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "content/renderer/media/native_handle_impl.h" | 10 #include "content/renderer/media/native_handle_impl.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 media::VideoCaptureFormats formats; | 142 media::VideoCaptureFormats formats; |
| 143 formats.push_back(format); | 143 formats.push_back(format); |
| 144 OnSupportedFormats(formats); | 144 OnSupportedFormats(formats); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 void MediaStreamRemoteVideoSource::DoRenderFrameOnMainThread( | 148 void MediaStreamRemoteVideoSource::DoRenderFrameOnMainThread( |
| 149 scoped_refptr<media::VideoFrame> video_frame) { | 149 scoped_refptr<media::VideoFrame> video_frame) { |
| 150 DCHECK(message_loop_proxy_->BelongsToCurrentThread()); | 150 DCHECK(message_loop_proxy_->BelongsToCurrentThread()); |
| 151 if (state() == STARTED) | 151 if (state() == STARTED) |
| 152 DeliverVideoFrame(video_frame, format_); | 152 DeliverVideoFrame(video_frame); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace content | 155 } // namespace content |
| OLD | NEW |