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

Unified Diff: remoting/host/directx_traits.cc

Issue 2464293002: [Chromoting] GetHostAttributes with tests (Closed)
Patch Set: Created 4 years, 1 month 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/directx_traits.cc
diff --git a/remoting/host/directx_traits.cc b/remoting/host/directx_traits.cc
new file mode 100644
index 0000000000000000000000000000000000000000..78e5991604fb2b8677ff619c3fb17a4e7f291308
--- /dev/null
+++ b/remoting/host/directx_traits.cc
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/directx_traits.h"
+
+#if defined(OS_WIN)
+#include "remoting/host/host_traits.h"
+#include "third_party/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h"
+
+namespace remoting {
+
+void RegisterDirectxTraits() {
+ host_traits().Register("DirectX-Capturer",
+ &ScreenCapturerWinDirectx::IsSupported);
+ // TODO(zijiehe): Add minimum and maximum DirectX version supported on the
+ // system. Blocked by change https://codereview.chromium.org/2468083002/.
+}
+
+} // namespace remoting
+#else
+namespace remoting {
+// Do nothing on other platforms.
+void RegisterDirectxTraits() {}
+} // namespace remoting
+#endif

Powered by Google App Engine
This is Rietveld 408576698