1 /* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "modules/desktop_capture/desktop_capture_options.h" 12 #include "modules/desktop_capture/desktop_capturer.h" 13 #include "modules/desktop_capture/win/window_capturer_win_gdi.h" 14 #include "modules/desktop_capture/win/window_capturer_win_wgc.h" 15 16 namespace webrtc { 17 18 // static CreateRawWindowCapturer(const DesktopCaptureOptions & options)19std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawWindowCapturer( 20 const DesktopCaptureOptions& options) { 21 // TODO(bugs.webrtc.org/11760): Add a WebRTC field trial (or similar 22 // mechanism) and Windows version check here that leads to use of the WGC 23 // capturer once it is fully implemented. 24 if (true) { 25 return WindowCapturerWinGdi::CreateRawWindowCapturer(options); 26 } else { 27 return WindowCapturerWinWgc::CreateRawWindowCapturer(options); 28 } 29 } 30 31 } // namespace webrtc 32