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

Side by Side Diff: remoting/protocol/fake_desktop_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
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/fake_desktop_capturer.h" 5 #include "remoting/protocol/fake_desktop_capturer.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 if (frame) { 152 if (frame) {
153 frame->set_capture_time_ms( 153 frame->set_capture_time_ms(
154 (base::Time::Now() - capture_start_time).InMillisecondsRoundedUp()); 154 (base::Time::Now() - capture_start_time).InMillisecondsRoundedUp());
155 } 155 }
156 callback_->OnCaptureResult( 156 callback_->OnCaptureResult(
157 frame ? webrtc::DesktopCapturer::Result::SUCCESS 157 frame ? webrtc::DesktopCapturer::Result::SUCCESS
158 : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY, 158 : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY,
159 std::move(frame)); 159 std::move(frame));
160 } 160 }
161 161
162 bool FakeDesktopCapturer::GetSourceList(SourceList* sources) {
163 NOTIMPLEMENTED();
164 return false;
165 }
166
167 bool FakeDesktopCapturer::SelectSource(SourceId id) {
168 NOTIMPLEMENTED();
169 return false;
170 }
171
162 } // namespace protocol 172 } // namespace protocol
163 } // namespace remoting 173 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_desktop_capturer.h ('k') | remoting/protocol/video_frame_pump_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698