OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <assert.h> | 11 #include <assert.h> |
12 | 12 |
13 #include "webrtc/base/constructormagic.h" | |
14 #include "webrtc/modules/desktop_capture/desktop_capturer.h" | 13 #include "webrtc/modules/desktop_capture/desktop_capturer.h" |
15 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 14 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
| 15 #include "webrtc/rtc_base/constructormagic.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 class WindowCapturerNull : public DesktopCapturer { | 21 class WindowCapturerNull : public DesktopCapturer { |
22 public: | 22 public: |
23 WindowCapturerNull(); | 23 WindowCapturerNull(); |
24 ~WindowCapturerNull() override; | 24 ~WindowCapturerNull() override; |
25 | 25 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 } // namespace | 63 } // namespace |
64 | 64 |
65 // static | 65 // static |
66 std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawWindowCapturer( | 66 std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawWindowCapturer( |
67 const DesktopCaptureOptions& options) { | 67 const DesktopCaptureOptions& options) { |
68 return std::unique_ptr<DesktopCapturer>(new WindowCapturerNull()); | 68 return std::unique_ptr<DesktopCapturer>(new WindowCapturerNull()); |
69 } | 69 } |
70 | 70 |
71 } // namespace webrtc | 71 } // namespace webrtc |
OLD | NEW |