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 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ | 10 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 use_update_notifications_ = use_update_notifications; | 65 use_update_notifications_ = use_update_notifications; |
66 } | 66 } |
67 | 67 |
68 // Flag indicating if desktop effects (e.g. Aero) should be disabled when the | 68 // Flag indicating if desktop effects (e.g. Aero) should be disabled when the |
69 // capturer is active. Currently used only on Windows. | 69 // capturer is active. Currently used only on Windows. |
70 bool disable_effects() const { return disable_effects_; } | 70 bool disable_effects() const { return disable_effects_; } |
71 void set_disable_effects(bool disable_effects) { | 71 void set_disable_effects(bool disable_effects) { |
72 disable_effects_ = disable_effects; | 72 disable_effects_ = disable_effects; |
73 } | 73 } |
74 | 74 |
75 // Flag indicating that the capturer should use pixel-wise differ to detect | |
76 // accurate updated region. | |
Sergey Ulanov
2016/09/09 00:03:40
This comment makes it sound like updated_region()
| |
77 bool accurate_updated_region() const { return accurate_updated_region_; } | |
Sergey Ulanov
2016/09/09 00:03:39
I don't think 'accurate' is the word to use here.
| |
78 void set_accurate_updated_region(bool accurate_updated_region) { | |
79 accurate_updated_region_ = accurate_updated_region; | |
80 } | |
81 | |
75 #if defined(WEBRTC_WIN) | 82 #if defined(WEBRTC_WIN) |
76 bool allow_use_magnification_api() const { | 83 bool allow_use_magnification_api() const { |
77 return allow_use_magnification_api_; | 84 return allow_use_magnification_api_; |
78 } | 85 } |
79 void set_allow_use_magnification_api(bool allow) { | 86 void set_allow_use_magnification_api(bool allow) { |
80 allow_use_magnification_api_ = allow; | 87 allow_use_magnification_api_ = allow; |
81 } | 88 } |
82 // Allowing directx based capturer or not, this capturer works on windows 7 | 89 // Allowing directx based capturer or not, this capturer works on windows 7 |
83 // with platform update / windows 8 or upper. | 90 // with platform update / windows 8 or upper. |
84 bool allow_directx_capturer() const { | 91 bool allow_directx_capturer() const { |
(...skipping 18 matching lines...) Expand all Loading... | |
103 #if defined(WEBRTC_WIN) | 110 #if defined(WEBRTC_WIN) |
104 bool allow_use_magnification_api_ = false; | 111 bool allow_use_magnification_api_ = false; |
105 bool allow_directx_capturer_ = false; | 112 bool allow_directx_capturer_ = false; |
106 #endif | 113 #endif |
107 #if defined(USE_X11) | 114 #if defined(USE_X11) |
108 bool use_update_notifications_ = false; | 115 bool use_update_notifications_ = false; |
109 #else | 116 #else |
110 bool use_update_notifications_ = true; | 117 bool use_update_notifications_ = true; |
111 #endif | 118 #endif |
112 bool disable_effects_ = true; | 119 bool disable_effects_ = true; |
120 bool accurate_updated_region_ = false; | |
113 }; | 121 }; |
114 | 122 |
115 } // namespace webrtc | 123 } // namespace webrtc |
116 | 124 |
117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ | 125 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ |
OLD | NEW |