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

Side by Side Diff: remoting/protocol/webrtc_video_capturer_adapter.cc

Issue 1669023004: Roll WebRTC 11486:11495, Libjingle 11485:11495 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update includes in content and remoting Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "remoting/protocol/webrtc_video_capturer_adapter.h" 5 #include "remoting/protocol/webrtc_video_capturer_adapter.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "third_party/libjingle/source/talk/media/webrtc/webrtcvideoframe.h"
10 #include "third_party/libyuv/include/libyuv/convert.h" 9 #include "third_party/libyuv/include/libyuv/convert.h"
10 #include "third_party/webrtc/media/webrtc/webrtcvideoframe.h"
11 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 11 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol { 14 namespace protocol {
15 15
16 // Number of frames to be captured per second. 16 // Number of frames to be captured per second.
17 const int kFramesPerSec = 30; 17 const int kFramesPerSec = 30;
18 18
19 WebrtcVideoCapturerAdapter::WebrtcVideoCapturerAdapter( 19 WebrtcVideoCapturerAdapter::WebrtcVideoCapturerAdapter(
20 scoped_ptr<webrtc::DesktopCapturer> capturer) 20 scoped_ptr<webrtc::DesktopCapturer> capturer)
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 DCHECK(thread_checker_.CalledOnValidThread()); 225 DCHECK(thread_checker_.CalledOnValidThread());
226 226
227 if (capture_pending_) 227 if (capture_pending_)
228 return; 228 return;
229 capture_pending_ = true; 229 capture_pending_ = true;
230 desktop_capturer_->Capture(webrtc::DesktopRegion()); 230 desktop_capturer_->Capture(webrtc::DesktopRegion());
231 } 231 }
232 232
233 } // namespace protocol 233 } // namespace protocol
234 } // namespace remoting 234 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.h ('k') | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698