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 |
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ | 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ |
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ | 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ |
13 | 13 |
14 #include <windows.h> | 14 #include <windows.h> |
15 #include <magnification.h> | 15 #include <magnification.h> |
16 #include <wincodec.h> | 16 #include <wincodec.h> |
17 | 17 |
18 #include "webrtc/base/constructormagic.h" | 18 #include "webrtc/base/constructormagic.h" |
19 #include "webrtc/base/scoped_ptr.h" | 19 #include "webrtc/base/scoped_ptr.h" |
20 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h" | 20 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h" |
21 #include "webrtc/modules/desktop_capture/screen_capturer.h" | 21 #include "webrtc/modules/desktop_capture/screen_capturer.h" |
22 #include "webrtc/modules/desktop_capture/screen_capturer_helper.h" | 22 #include "webrtc/modules/desktop_capture/screen_capturer_helper.h" |
23 #include "webrtc/modules/desktop_capture/win/scoped_thread_desktop.h" | 23 #include "webrtc/modules/desktop_capture/win/scoped_thread_desktop.h" |
24 #include "webrtc/system_wrappers/interface/atomic32.h" | 24 #include "webrtc/system_wrappers/include/atomic32.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 class DesktopFrame; | 28 class DesktopFrame; |
29 class DesktopRect; | 29 class DesktopRect; |
30 class Differ; | 30 class Differ; |
31 | 31 |
32 // Captures the screen using the Magnification API to support window exclusion. | 32 // Captures the screen using the Magnification API to support window exclusion. |
33 // Each capturer must run on a dedicated thread because it uses thread local | 33 // Each capturer must run on a dedicated thread because it uses thread local |
34 // storage for redirecting the library callback. Also the thread must have a UI | 34 // storage for redirecting the library callback. Also the thread must have a UI |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // True if the last OnMagImageScalingCallback was called and handled | 144 // True if the last OnMagImageScalingCallback was called and handled |
145 // successfully. Reset at the beginning of each CaptureImage call. | 145 // successfully. Reset at the beginning of each CaptureImage call. |
146 bool magnifier_capture_succeeded_; | 146 bool magnifier_capture_succeeded_; |
147 | 147 |
148 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); | 148 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace webrtc | 151 } // namespace webrtc |
152 | 152 |
153 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ | 153 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ |
OLD | NEW |