OLD | NEW |
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 Loading... |
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 |
OLD | NEW |