| Index: webrtc/modules/desktop_capture/screen_capturer_win.cc
|
| diff --git a/webrtc/modules/desktop_capture/screen_capturer_win.cc b/webrtc/modules/desktop_capture/screen_capturer_win.cc
|
| index 00a512bdc7f72c1a46eed50df7d7f93eb0a05614..1aec5aaa0f1c984137090c10678a52e07564b11f 100644
|
| --- a/webrtc/modules/desktop_capture/screen_capturer_win.cc
|
| +++ b/webrtc/modules/desktop_capture/screen_capturer_win.cc
|
| @@ -8,13 +8,11 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#include "webrtc/modules/desktop_capture/screen_capturer.h"
|
| -
|
| #include <memory>
|
| #include <utility>
|
|
|
| +#include "webrtc/modules/desktop_capture/desktop_capturer.h"
|
| #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
|
| -#include "webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.h"
|
| #include "webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h"
|
| #include "webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h"
|
| #include "webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h"
|
| @@ -22,27 +20,6 @@
|
| namespace webrtc {
|
|
|
| // static
|
| -ScreenCapturer* ScreenCapturer::Create(const DesktopCaptureOptions& options) {
|
| - std::unique_ptr<ScreenCapturer> capturer;
|
| - if (options.allow_directx_capturer() &&
|
| - ScreenCapturerWinDirectx::IsSupported()) {
|
| - capturer.reset(new ScreenCapturerWinDirectx(options));
|
| - } else {
|
| - capturer.reset(new ScreenCapturerWinGdi(options));
|
| - }
|
| -
|
| - if (options.allow_use_magnification_api()) {
|
| - capturer.reset(new ScreenCapturerWinMagnifier(std::move(capturer)));
|
| - }
|
| -
|
| - if (options.detect_updated_region()) {
|
| - capturer.reset(new ScreenCapturerDifferWrapper(std::move(capturer)));
|
| - }
|
| -
|
| - return capturer.release();
|
| -}
|
| -
|
| -// static
|
| std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawScreenCapturer(
|
| const DesktopCaptureOptions& options) {
|
| std::unique_ptr<DesktopCapturer> capturer;
|
|
|