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

Side by Side Diff: remoting/host/desktop_environment_options.cc

Issue 2628473002: [Chromoting] Enable DirectX capturer (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/desktop_environment_options.h" 5 #include "remoting/host/desktop_environment_options.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace remoting { 9 namespace remoting {
10 10
(...skipping 18 matching lines...) Expand all
29 DesktopEnvironmentOptions::~DesktopEnvironmentOptions() = default; 29 DesktopEnvironmentOptions::~DesktopEnvironmentOptions() = default;
30 DesktopEnvironmentOptions& 30 DesktopEnvironmentOptions&
31 DesktopEnvironmentOptions::operator=( 31 DesktopEnvironmentOptions::operator=(
32 DesktopEnvironmentOptions&& other) = default; 32 DesktopEnvironmentOptions&& other) = default;
33 DesktopEnvironmentOptions& 33 DesktopEnvironmentOptions&
34 DesktopEnvironmentOptions::operator=( 34 DesktopEnvironmentOptions::operator=(
35 const DesktopEnvironmentOptions& other) = default; 35 const DesktopEnvironmentOptions& other) = default;
36 36
37 void DesktopEnvironmentOptions::Initialize() { 37 void DesktopEnvironmentOptions::Initialize() {
38 desktop_capture_options_.set_detect_updated_region(true); 38 desktop_capture_options_.set_detect_updated_region(true);
39 #if defined (OS_WIN)
40 desktop_capture_options_.set_allow_directx_capturer(true);
41 #endif
39 } 42 }
40 43
41 const DesktopCaptureOptions* 44 const DesktopCaptureOptions*
42 DesktopEnvironmentOptions::desktop_capture_options() const { 45 DesktopEnvironmentOptions::desktop_capture_options() const {
43 return &desktop_capture_options_; 46 return &desktop_capture_options_;
44 } 47 }
45 48
46 DesktopCaptureOptions* 49 DesktopCaptureOptions*
47 DesktopEnvironmentOptions::desktop_capture_options() { 50 DesktopEnvironmentOptions::desktop_capture_options() {
48 return &desktop_capture_options_; 51 return &desktop_capture_options_;
49 } 52 }
50 53
51 bool DesktopEnvironmentOptions::enable_curtaining() const { 54 bool DesktopEnvironmentOptions::enable_curtaining() const {
52 return enable_curtaining_; 55 return enable_curtaining_;
53 } 56 }
54 57
55 void DesktopEnvironmentOptions::set_enable_curtaining(bool enabled) { 58 void DesktopEnvironmentOptions::set_enable_curtaining(bool enabled) {
56 enable_curtaining_ = enabled; 59 enable_curtaining_ = enabled;
57 } 60 }
58 61
59 bool DesktopEnvironmentOptions::enable_user_interface() const { 62 bool DesktopEnvironmentOptions::enable_user_interface() const {
60 return enable_user_interface_; 63 return enable_user_interface_;
61 } 64 }
62 65
63 void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) { 66 void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) {
64 enable_user_interface_ = enabled; 67 enable_user_interface_ = enabled;
65 } 68 }
66 69
67 } // namespace remoting 70 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698