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