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

Side by Side Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h

Issue 2490063002: Remove ScreenCapturer and WindowCapturer (Closed)
Patch Set: 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 /* 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
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/modules/desktop_capture/screen_capturer.h"
17
18 #include <windows.h> 16 #include <windows.h>
19 17
20 #include "webrtc/base/constructormagic.h" 18 #include "webrtc/base/constructormagic.h"
19 #include "webrtc/modules/desktop_capture/desktop_capturer.h"
21 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h" 20 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h"
22 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h" 21 #include "webrtc/modules/desktop_capture/shared_desktop_frame.h"
23 #include "webrtc/modules/desktop_capture/win/scoped_thread_desktop.h" 22 #include "webrtc/modules/desktop_capture/win/scoped_thread_desktop.h"
24 23
25 namespace webrtc { 24 namespace webrtc {
26 25
27 // ScreenCapturerWinGdi captures 32bit RGB using GDI. 26 // ScreenCapturerWinGdi captures 32bit RGB using GDI.
28 // 27 //
29 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer. 28 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer.
30 // This class does not detect DesktopFrame::updated_region(), the field is 29 // This class does not detect DesktopFrame::updated_region(), the field is
31 // always set to the entire frame rectangle. ScreenCapturerDifferWrapper should 30 // always set to the entire frame rectangle. ScreenCapturerDifferWrapper should
32 // be used if that functionality is necessary. 31 // be used if that functionality is necessary.
33 class ScreenCapturerWinGdi : public ScreenCapturer { 32 class ScreenCapturerWinGdi : public DesktopCapturer {
34 public: 33 public:
35 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options); 34 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options);
36 ~ScreenCapturerWinGdi() override; 35 ~ScreenCapturerWinGdi() override;
37 36
38 // Overridden from ScreenCapturer: 37 // Overridden from ScreenCapturer:
39 void Start(Callback* callback) override; 38 void Start(Callback* callback) override;
40 void SetSharedMemoryFactory( 39 void SetSharedMemoryFactory(
41 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; 40 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override;
42 void CaptureFrame() override; 41 void CaptureFrame() override;
43 bool GetSourceList(SourceList* sources) override; 42 bool GetSourceList(SourceList* sources) override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 75
77 HMODULE dwmapi_library_ = NULL; 76 HMODULE dwmapi_library_ = NULL;
78 DwmEnableCompositionFunc composition_func_ = nullptr; 77 DwmEnableCompositionFunc composition_func_ = nullptr;
79 78
80 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi); 79 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi);
81 }; 80 };
82 81
83 } // namespace webrtc 82 } // namespace webrtc
84 83
85 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ 84 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698