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

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 width change in Texture::Capture Created 4 years, 8 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
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...) Expand 10 before | Expand all | Expand 10 after
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 bool use_directx_capturer() const { return use_directx_capturer_; }
Sergey Ulanov 2016/04/14 23:10:42 Maybe call it allow_directx_capturer? The new capt
Hzj_jie 2016/04/15 19:42:17 Done.
87 void set_use_directx_capturer(bool enabled) {
88 use_directx_capturer_ = enabled;
89 }
86 #endif 90 #endif
87 91
88 private: 92 private:
89 #if defined(USE_X11) 93 #if defined(USE_X11)
90 rtc::scoped_refptr<SharedXDisplay> x_display_; 94 rtc::scoped_refptr<SharedXDisplay> x_display_;
91 #endif 95 #endif
92 96
93 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) 97 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
94 rtc::scoped_refptr<DesktopConfigurationMonitor> configuration_monitor_; 98 rtc::scoped_refptr<DesktopConfigurationMonitor> configuration_monitor_;
95 rtc::scoped_refptr<FullScreenChromeWindowDetector> 99 rtc::scoped_refptr<FullScreenChromeWindowDetector>
96 full_screen_window_detector_; 100 full_screen_window_detector_;
97 #endif 101 #endif
98 102
99 #if defined(WEBRTC_WIN) 103 #if defined(WEBRTC_WIN)
100 bool allow_use_magnification_api_; 104 bool allow_use_magnification_api_;
105 bool use_directx_capturer_;
101 #endif 106 #endif
102 bool use_update_notifications_; 107 bool use_update_notifications_;
103 bool disable_effects_; 108 bool disable_effects_;
104 }; 109 };
105 110
106 } // namespace webrtc 111 } // namespace webrtc
107 112
108 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ 113 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698