OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // ScreenCapturerWinGdi captures 32bit RGB using GDI. | 27 // ScreenCapturerWinGdi captures 32bit RGB using GDI. |
28 // | 28 // |
29 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer. | 29 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer. |
30 // This class does not detect DesktopFrame::updated_region(), the field is | 30 // This class does not detect DesktopFrame::updated_region(), the field is |
31 // always set to the entire frame rectangle. ScreenCapturerDifferWrapper should | 31 // always set to the entire frame rectangle. ScreenCapturerDifferWrapper should |
32 // be used if that functionality is necessary. | 32 // be used if that functionality is necessary. |
33 class ScreenCapturerWinGdi : public ScreenCapturer { | 33 class ScreenCapturerWinGdi : public ScreenCapturer { |
34 public: | 34 public: |
35 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options); | 35 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options); |
36 virtual ~ScreenCapturerWinGdi(); | 36 ~ScreenCapturerWinGdi() override; |
37 | 37 |
38 // Overridden from ScreenCapturer: | 38 // Overridden from ScreenCapturer: |
39 void Start(Callback* callback) override; | 39 void Start(Callback* callback) override; |
40 void SetSharedMemoryFactory( | 40 void SetSharedMemoryFactory( |
41 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; | 41 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; |
42 void CaptureFrame() override; | 42 void CaptureFrame() override; |
43 bool GetScreenList(ScreenList* screens) override; | 43 bool GetScreenList(ScreenList* screens) override; |
44 bool SelectScreen(ScreenId id) override; | 44 bool SelectScreen(ScreenId id) override; |
45 | 45 |
46 private: | 46 private: |
(...skipping 29 matching lines...) Expand all Loading... |
76 | 76 |
77 HMODULE dwmapi_library_ = NULL; | 77 HMODULE dwmapi_library_ = NULL; |
78 DwmEnableCompositionFunc composition_func_ = nullptr; | 78 DwmEnableCompositionFunc composition_func_ = nullptr; |
79 | 79 |
80 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi); | 80 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace webrtc | 83 } // namespace webrtc |
84 | 84 |
85 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ | 85 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ |
OLD | NEW |