Chromium Code Reviews

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

Issue 1845113002: DirectX based screen capturer logic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unrelated changes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 65 matching lines...)
76 disable_effects_ = disable_effects; 76 disable_effects_ = disable_effects;
77 } 77 }
78 78
79 #if defined(WEBRTC_WIN) 79 #if defined(WEBRTC_WIN)
80 bool allow_use_magnification_api() const { 80 bool allow_use_magnification_api() const {
81 return allow_use_magnification_api_; 81 return allow_use_magnification_api_;
82 } 82 }
83 void set_allow_use_magnification_api(bool allow) { 83 void set_allow_use_magnification_api(bool allow) {
84 allow_use_magnification_api_ = allow; 84 allow_use_magnification_api_ = allow;
85 } 85 }
86 // Allowing directx based capturer or not, this capturer works on windows 7
87 // with platform update / windows 8 or upper.
88 bool allow_directx_capturer() const {
89 return allow_directx_capturer_;
90 }
91 void set_allow_directx_capturer(bool enabled) {
92 allow_directx_capturer_ = enabled;
93 }
86 #endif 94 #endif
87 95
88 private: 96 private:
89 #if defined(USE_X11) 97 #if defined(USE_X11)
90 rtc::scoped_refptr<SharedXDisplay> x_display_; 98 rtc::scoped_refptr<SharedXDisplay> x_display_;
91 #endif 99 #endif
92 100
93 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) 101 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
94 rtc::scoped_refptr<DesktopConfigurationMonitor> configuration_monitor_; 102 rtc::scoped_refptr<DesktopConfigurationMonitor> configuration_monitor_;
95 rtc::scoped_refptr<FullScreenChromeWindowDetector> 103 rtc::scoped_refptr<FullScreenChromeWindowDetector>
96 full_screen_window_detector_; 104 full_screen_window_detector_;
97 #endif 105 #endif
98 106
99 #if defined(WEBRTC_WIN) 107 #if defined(WEBRTC_WIN)
100 bool allow_use_magnification_api_; 108 bool allow_use_magnification_api_;
109 bool allow_directx_capturer_;
Sergey Ulanov 2016/05/13 19:38:10 = false; so the new capturer is disabled by defaul
Hzj_jie 2016/05/16 18:17:28 Done.
101 #endif 110 #endif
102 bool use_update_notifications_; 111 bool use_update_notifications_;
103 bool disable_effects_; 112 bool disable_effects_;
104 }; 113 };
105 114
106 } // namespace webrtc 115 } // namespace webrtc
107 116
108 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ 117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_
OLDNEW

Powered by Google App Engine