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

Side by Side Diff: remoting/host/ipc_video_frame_capturer.cc

Issue 2483483004: [Chromoting] Implement new APIs in DesktopCapturer (Closed)
Patch Set: Resolve review comments Created 4 years, 1 month 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
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "remoting/host/ipc_video_frame_capturer.h" 5 #include "remoting/host/ipc_video_frame_capturer.h"
6 6
7 #include "base/logging.h"
7 #include "remoting/host/desktop_session_proxy.h" 8 #include "remoting/host/desktop_session_proxy.h"
8 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" 9 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 12
12 IpcVideoFrameCapturer::IpcVideoFrameCapturer( 13 IpcVideoFrameCapturer::IpcVideoFrameCapturer(
13 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) 14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy)
14 : callback_(nullptr), 15 : callback_(nullptr),
15 desktop_session_proxy_(desktop_session_proxy), 16 desktop_session_proxy_(desktop_session_proxy),
16 capture_pending_(false), 17 capture_pending_(false),
(...skipping 17 matching lines...) Expand all
34 } 35 }
35 36
36 void IpcVideoFrameCapturer::OnCaptureResult( 37 void IpcVideoFrameCapturer::OnCaptureResult(
37 webrtc::DesktopCapturer::Result result, 38 webrtc::DesktopCapturer::Result result,
38 std::unique_ptr<webrtc::DesktopFrame> frame) { 39 std::unique_ptr<webrtc::DesktopFrame> frame) {
39 DCHECK(capture_pending_); 40 DCHECK(capture_pending_);
40 capture_pending_ = false; 41 capture_pending_ = false;
41 callback_->OnCaptureResult(result, std::move(frame)); 42 callback_->OnCaptureResult(result, std::move(frame));
42 } 43 }
43 44
45 bool IpcVideoFrameCapturer::GetSourceList(SourceList* sources) {
46 NOTIMPLEMENTED();
47 return false;
48 }
49
50 bool IpcVideoFrameCapturer::SelectSource(SourceId id) {
51 NOTIMPLEMENTED();
52 return false;
53 }
54
44 } // namespace remoting 55 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698