Chromium Code Reviews| 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 that should be set if the consumer uses updated_region() and the | |
| 76 // capturer should try to provide correct updated_region() for the frames it | |
| 77 // generates (e.g. by comparing each frame with the previous one). | |
|
Sergey Ulanov
2016/09/15 23:51:35
Currently this flag is ignored in WindowCapturer i
Hzj_jie
2016/09/16 00:31:18
Done.
| |
| 78 bool detect_updated_region() const { return detect_updated_region_; } | |
| 79 void set_detect_updated_region(bool detect_updated_region) { | |
| 80 detect_updated_region_ = detect_updated_region; | |
| 81 } | |
| 82 | |
| 75 #if defined(WEBRTC_WIN) | 83 #if defined(WEBRTC_WIN) |
| 76 bool allow_use_magnification_api() const { | 84 bool allow_use_magnification_api() const { |
| 77 return allow_use_magnification_api_; | 85 return allow_use_magnification_api_; |
| 78 } | 86 } |
| 79 void set_allow_use_magnification_api(bool allow) { | 87 void set_allow_use_magnification_api(bool allow) { |
| 80 allow_use_magnification_api_ = allow; | 88 allow_use_magnification_api_ = allow; |
| 81 } | 89 } |
| 82 // Allowing directx based capturer or not, this capturer works on windows 7 | 90 // Allowing directx based capturer or not, this capturer works on windows 7 |
| 83 // with platform update / windows 8 or upper. | 91 // with platform update / windows 8 or upper. |
| 84 bool allow_directx_capturer() const { | 92 bool allow_directx_capturer() const { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 103 #if defined(WEBRTC_WIN) | 111 #if defined(WEBRTC_WIN) |
| 104 bool allow_use_magnification_api_ = false; | 112 bool allow_use_magnification_api_ = false; |
| 105 bool allow_directx_capturer_ = false; | 113 bool allow_directx_capturer_ = false; |
| 106 #endif | 114 #endif |
| 107 #if defined(USE_X11) | 115 #if defined(USE_X11) |
| 108 bool use_update_notifications_ = false; | 116 bool use_update_notifications_ = false; |
| 109 #else | 117 #else |
| 110 bool use_update_notifications_ = true; | 118 bool use_update_notifications_ = true; |
| 111 #endif | 119 #endif |
| 112 bool disable_effects_ = true; | 120 bool disable_effects_ = true; |
| 121 bool detect_updated_region_ = false; | |
| 113 }; | 122 }; |
| 114 | 123 |
| 115 } // namespace webrtc | 124 } // namespace webrtc |
| 116 | 125 |
| 117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ | 126 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ |
| OLD | NEW |