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

Side by Side Diff: content/renderer/media/webrtc/media_stream_remote_video_source.cc

Issue 263323003: Revert of Refactor video capturing code in the render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_message_filter.h ('k') | content/renderer/media/webrtc/video_destination_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698