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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // screen is being captured, or the OS does not support Magnification API, or | 44 // screen is being captured, or the OS does not support Magnification API, or |
45 // the magnifier capturer fails (e.g. in Windows8 Metro mode). | 45 // the magnifier capturer fails (e.g. in Windows8 Metro mode). |
46 explicit ScreenCapturerWinMagnifier( | 46 explicit ScreenCapturerWinMagnifier( |
47 std::unique_ptr<ScreenCapturer> fallback_capturer); | 47 std::unique_ptr<ScreenCapturer> fallback_capturer); |
48 virtual ~ScreenCapturerWinMagnifier(); | 48 virtual ~ScreenCapturerWinMagnifier(); |
49 | 49 |
50 // Overridden from ScreenCapturer: | 50 // Overridden from ScreenCapturer: |
51 void Start(Callback* callback) override; | 51 void Start(Callback* callback) override; |
52 void SetSharedMemoryFactory( | 52 void SetSharedMemoryFactory( |
53 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; | 53 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; |
54 void Capture(const DesktopRegion& region) override; | 54 void CaptureFrame() override; |
55 bool GetScreenList(ScreenList* screens) override; | 55 bool GetScreenList(ScreenList* screens) override; |
56 bool SelectScreen(ScreenId id) override; | 56 bool SelectScreen(ScreenId id) override; |
57 void SetExcludedWindow(WindowId window) override; | 57 void SetExcludedWindow(WindowId window) override; |
58 | 58 |
59 private: | 59 private: |
60 typedef BOOL(WINAPI* MagImageScalingCallback)(HWND hwnd, | 60 typedef BOOL(WINAPI* MagImageScalingCallback)(HWND hwnd, |
61 void* srcdata, | 61 void* srcdata, |
62 MAGIMAGEHEADER srcheader, | 62 MAGIMAGEHEADER srcheader, |
63 void* destdata, | 63 void* destdata, |
64 MAGIMAGEHEADER destheader, | 64 MAGIMAGEHEADER destheader, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // True if the last OnMagImageScalingCallback was called and handled | 142 // True if the last OnMagImageScalingCallback was called and handled |
143 // successfully. Reset at the beginning of each CaptureImage call. | 143 // successfully. Reset at the beginning of each CaptureImage call. |
144 bool magnifier_capture_succeeded_ = true; | 144 bool magnifier_capture_succeeded_ = true; |
145 | 145 |
146 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); | 146 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace webrtc | 149 } // namespace webrtc |
150 | 150 |
151 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ | 151 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ |
OLD | NEW |