Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
Sergey Ulanov
2016/11/03 22:17:42
Do we really need one file per attribute, instead
Hzj_jie
2016/11/05 05:29:28
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "remoting/host/directx_attributes.h" | |
| 6 | |
| 7 #if defined(OS_WIN) | |
|
Sergey Ulanov
2016/11/03 22:17:42
I think you need to include build/build_config.h t
Hzj_jie
2016/11/05 05:29:28
Done.
| |
| 8 #include "remoting/host/host_attributes.h" | |
| 9 #include "third_party/webrtc/modules/desktop_capture/win/screen_capturer_win_dir ectx.h" | |
| 10 | |
| 11 namespace remoting { | |
| 12 | |
| 13 void RegisterDirectxAttributes() { | |
| 14 host_attributes().Register("DirectX-Capturer", | |
|
Sergey Ulanov
2016/11/03 22:15:34
What is host_attributes() and where is it defined?
Hzj_jie
2016/11/05 05:29:28
I forgot to change this file.
| |
| 15 &ScreenCapturerWinDirectx::IsSupported); | |
| 16 // TODO(zijiehe): Add minimum and maximum DirectX version supported on the | |
| 17 // system. Blocked by change https://codereview.chromium.org/2468083002/. | |
| 18 } | |
| 19 | |
| 20 } // namespace remoting | |
| 21 #else | |
| 22 namespace remoting { | |
| 23 // Do nothing on other platforms. | |
| 24 void RegisterDirectxAttributes() {} | |
| 25 } // namespace remoting | |
| 26 #endif | |
| OLD | NEW |