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 |