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 1aec5aaa0f1c984137090c10678a52e07564b11f..971a2b08be2a5dfafaba3ec6ec52990eaccb2a12 100644 |
--- a/webrtc/modules/desktop_capture/screen_capturer_win.cc |
+++ b/webrtc/modules/desktop_capture/screen_capturer_win.cc |
@@ -13,6 +13,7 @@ |
#include "webrtc/modules/desktop_capture/desktop_capturer.h" |
#include "webrtc/modules/desktop_capture/desktop_capture_options.h" |
+#include "webrtc/modules/desktop_capture/fallback_desktop_capturer_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" |
@@ -31,7 +32,9 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawScreenCapturer( |
} |
if (options.allow_use_magnification_api()) { |
- capturer.reset(new ScreenCapturerWinMagnifier(std::move(capturer))); |
+ capturer.reset(new FallbackDesktopCapturerWrapper( |
Sergey Ulanov
2017/02/21 20:49:31
Please add a comment to explain why we need to use
Hzj_jie
2017/02/21 23:27:33
Done.
|
+ std::unique_ptr<DesktopCapturer>(new ScreenCapturerWinMagnifier()), |
+ std::move(capturer))); |
} |
return capturer; |