| Index: webrtc/modules/desktop_capture/desktop_capture_options.h
|
| diff --git a/webrtc/modules/desktop_capture/desktop_capture_options.h b/webrtc/modules/desktop_capture/desktop_capture_options.h
|
| index 2aa3e5197c0b3672d08a9e9dbaf574e116d35906..d872d7d15f5581a8c35384168b954723b16505e9 100644
|
| --- a/webrtc/modules/desktop_capture/desktop_capture_options.h
|
| +++ b/webrtc/modules/desktop_capture/desktop_capture_options.h
|
| @@ -72,6 +72,16 @@ class DesktopCaptureOptions {
|
| disable_effects_ = disable_effects;
|
| }
|
|
|
| + // Flag that should be set if the consumer uses updated_region() and the
|
| + // capturer should try to provide correct updated_region() for the frames it
|
| + // generates (e.g. by comparing each frame with the previous one).
|
| + // TODO(zijiehe): WindowCapturer ignores this opinion until we merge
|
| + // ScreenCapturer and WindowCapturer interfaces.
|
| + bool detect_updated_region() const { return detect_updated_region_; }
|
| + void set_detect_updated_region(bool detect_updated_region) {
|
| + detect_updated_region_ = detect_updated_region;
|
| + }
|
| +
|
| #if defined(WEBRTC_WIN)
|
| bool allow_use_magnification_api() const {
|
| return allow_use_magnification_api_;
|
| @@ -110,6 +120,7 @@ class DesktopCaptureOptions {
|
| bool use_update_notifications_ = true;
|
| #endif
|
| bool disable_effects_ = true;
|
| + bool detect_updated_region_ = false;
|
| };
|
|
|
| } // namespace webrtc
|
|
|