Index: webrtc/modules/desktop_capture/cropping_window_capturer_win.cc |
diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc |
index deffe665ee53b6f585d07cba2017268cff593bac..73a2aa9d6ecffb7c2f10884d787f6bb07371ab30 100644 |
--- a/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc |
+++ b/webrtc/modules/desktop_capture/cropping_window_capturer_win.cc |
@@ -119,10 +119,12 @@ class CroppingWindowCapturerWin : public CroppingWindowCapturer { |
// The region from GetWindowRgn in the desktop coordinate if the region is |
// rectangular, or the rect from GetWindowRect if the region is not set. |
DesktopRect window_region_rect_; |
+ |
+ AeroChecker aero_checker_; |
}; |
bool CroppingWindowCapturerWin::ShouldUseScreenCapturer() { |
- if (!rtc::IsWindows8OrLater()) |
+ if (!rtc::IsWindows8OrLater() && aero_checker_.IsAeroEnabled()) |
return false; |
// Check if the window is a translucent layered window. |