OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/desktop_capture/desktop_capturer.h" | 11 #include "webrtc/modules/desktop_capture/desktop_capturer.h" |
12 | 12 |
13 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" | 13 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
14 #include "webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.h" | 14 #include "webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 | 17 |
18 DesktopCapturer::~DesktopCapturer() = default; | 18 DesktopCapturer::~DesktopCapturer() = default; |
19 | 19 |
20 void DesktopCapturer::SetSharedMemoryFactory( | 20 void DesktopCapturer::SetSharedMemoryFactory( |
21 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) {} | 21 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) {} |
22 | 22 |
23 void DesktopCapturer::SetExcludedWindow(WindowId window) {} | 23 void DesktopCapturer::SetExcludedWindow(WindowId window) {} |
24 | 24 |
25 bool DesktopCapturer::GetSourceList(SourceList* sources) { | 25 bool DesktopCapturer::GetSourceList(SourceList* sources) { |
26 return true; | 26 return true; |
27 } | 27 } |
28 | 28 |
29 bool DesktopCapturer::SelectSource(SourceId id) { | 29 bool DesktopCapturer::SelectSource(SourceId id) { |
30 return false; | 30 return false; |
31 } | 31 } |
32 | 32 |
33 bool DesktopCapturer::FocusOnSelectedSource() { | 33 bool DesktopCapturer::FocusOnSelectedSource() { |
34 return false; | 34 return false; |
35 } | 35 } |
36 | 36 |
37 #if defined(RTC_DESKTOP_CAPTURE_SUPPORTED) | |
Sergey Ulanov
2016/11/01 20:33:31
Ideally this file shouldn't be compiled at all whe
Hzj_jie
2016/11/01 21:12:13
Is there any reason we put AuraDesktopCapturer for
| |
38 // static | |
39 std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateWindowCapturer( | |
40 const DesktopCaptureOptions& options) { | |
41 std::unique_ptr<DesktopCapturer> capturer = CreateRawWindowCapturer(options); | |
42 if (options.detect_updated_region()) { | |
43 capturer.reset(new DesktopCapturerDifferWrapper(std::move(capturer))); | |
44 } | |
45 | |
46 return capturer; | |
47 } | |
48 | |
49 // static | |
50 std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateScreenCapturer( | |
51 const DesktopCaptureOptions& options) { | |
52 std::unique_ptr<DesktopCapturer> capturer = CreateRawScreenCapturer(options); | |
53 if (options.detect_updated_region()) { | |
54 capturer.reset(new DesktopCapturerDifferWrapper(std::move(capturer))); | |
55 } | |
56 | |
57 return capturer; | |
58 } | |
59 #endif | |
Sergey Ulanov
2016/11/01 20:33:31
// defined(RTC_DESKTOP_CAPTURE_SUPPORTED)
Hzj_jie
2016/11/01 21:12:13
Done.
| |
60 | |
37 } // namespace webrtc | 61 } // namespace webrtc |
OLD | NEW |