Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: webrtc/modules/desktop_capture/desktop_capture_options.h

Issue 2314323002: Wrap ScreenCapturer with ScreenCapturerDifferWrapper (Closed)
Patch Set: Resolve review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/screen_capturer_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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).
78 // TODO(zijiehe): WindowCapturer ignores this opinion until we merge
79 // ScreenCapturer and WindowCapturer interfaces.
80 bool detect_updated_region() const { return detect_updated_region_; }
81 void set_detect_updated_region(bool detect_updated_region) {
82 detect_updated_region_ = detect_updated_region;
83 }
84
75 #if defined(WEBRTC_WIN) 85 #if defined(WEBRTC_WIN)
76 bool allow_use_magnification_api() const { 86 bool allow_use_magnification_api() const {
77 return allow_use_magnification_api_; 87 return allow_use_magnification_api_;
78 } 88 }
79 void set_allow_use_magnification_api(bool allow) { 89 void set_allow_use_magnification_api(bool allow) {
80 allow_use_magnification_api_ = allow; 90 allow_use_magnification_api_ = allow;
81 } 91 }
82 // Allowing directx based capturer or not, this capturer works on windows 7 92 // Allowing directx based capturer or not, this capturer works on windows 7
83 // with platform update / windows 8 or upper. 93 // with platform update / windows 8 or upper.
84 bool allow_directx_capturer() const { 94 bool allow_directx_capturer() const {
(...skipping 18 matching lines...) Expand all
103 #if defined(WEBRTC_WIN) 113 #if defined(WEBRTC_WIN)
104 bool allow_use_magnification_api_ = false; 114 bool allow_use_magnification_api_ = false;
105 bool allow_directx_capturer_ = false; 115 bool allow_directx_capturer_ = false;
106 #endif 116 #endif
107 #if defined(USE_X11) 117 #if defined(USE_X11)
108 bool use_update_notifications_ = false; 118 bool use_update_notifications_ = false;
109 #else 119 #else
110 bool use_update_notifications_ = true; 120 bool use_update_notifications_ = true;
111 #endif 121 #endif
112 bool disable_effects_ = true; 122 bool disable_effects_ = true;
123 bool detect_updated_region_ = false;
113 }; 124 };
114 125
115 } // namespace webrtc 126 } // namespace webrtc
116 127
117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ 128 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/screen_capturer_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698