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

Unified Diff: remoting/host/desktop_environment_options.cc

Issue 2615113005: [Chromoting] Use HostExperimentSessionPlugin in host (Closed)
Patch Set: Enable two-way control of DirectX capturer Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/desktop_environment_options.cc
diff --git a/remoting/host/desktop_environment_options.cc b/remoting/host/desktop_environment_options.cc
index 716142c760edfa49fd39d77088676f1b99b0392d..af4c8fe069b64647d1e591cd0f5ac53bdac31910 100644
--- a/remoting/host/desktop_environment_options.cc
+++ b/remoting/host/desktop_environment_options.cc
@@ -4,8 +4,11 @@
#include "remoting/host/desktop_environment_options.h"
+#include <string>
#include <utility>
+#include "base/optional.h"
+
namespace remoting {
using DesktopCaptureOptions = webrtc::DesktopCaptureOptions;
@@ -64,4 +67,13 @@ void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) {
enable_user_interface_ = enabled;
}
+void DesktopEnvironmentOptions::Import(const HostSessionOptions& options) {
+#if defined(OS_WIN)
+ base::Optional<std::string> result = options.Get("DirectX-Capturer");
+ if (result) {
+ desktop_capture_options_.set_allow_directx_capturer(*result == "true");
+ }
+#endif
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698