| 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 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ | 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ |
| 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ | 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "webrtc/base/constructormagic.h" | |
| 17 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 16 #include "webrtc/modules/desktop_capture/desktop_geometry.h" |
| 18 #include "webrtc/modules/desktop_capture/desktop_region.h" | 17 #include "webrtc/modules/desktop_capture/desktop_region.h" |
| 18 #include "webrtc/rtc_base/constructormagic.h" |
| 19 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" | 19 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 // ScreenCapturerHelper is intended to be used by an implementation of the | 23 // ScreenCapturerHelper is intended to be used by an implementation of the |
| 24 // ScreenCapturer interface. It maintains a thread-safe invalid region, and | 24 // ScreenCapturer interface. It maintains a thread-safe invalid region, and |
| 25 // the size of the most recently captured screen, on behalf of the | 25 // the size of the most recently captured screen, on behalf of the |
| 26 // ScreenCapturer that owns it. | 26 // ScreenCapturer that owns it. |
| 27 class ScreenCapturerHelper { | 27 class ScreenCapturerHelper { |
| 28 public: | 28 public: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // expanded. | 81 // expanded. |
| 82 // If the value is <= 0, then the invalid region is not expanded to a grid. | 82 // If the value is <= 0, then the invalid region is not expanded to a grid. |
| 83 int log_grid_size_; | 83 int log_grid_size_; |
| 84 | 84 |
| 85 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerHelper); | 85 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerHelper); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace webrtc | 88 } // namespace webrtc |
| 89 | 89 |
| 90 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ | 90 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_SCREEN_CAPTURER_HELPER_H_ |
| OLD | NEW |