| Index: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc
|
| index 31fbf4b8979948f9c60a2a2dc0b3df70d7f5fb90..80d2da55de20069900af55b2680eb2a4f88c5554 100644
|
| --- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc
|
| +++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc
|
| @@ -78,15 +78,6 @@ void ScreenCapturerWinGdi::Capture(const DesktopRegion& region) {
|
| queue_.MoveToNextFrame();
|
| RTC_DCHECK(!queue_.current_frame() || !queue_.current_frame()->IsShared());
|
|
|
| - // Request that the system not power-down the system, or the display hardware.
|
| - if (!SetThreadExecutionState(ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED)) {
|
| - if (!set_thread_execution_state_failed_) {
|
| - set_thread_execution_state_failed_ = true;
|
| - LOG_F(LS_WARNING) << "Failed to make system & display power assertion: "
|
| - << GetLastError();
|
| - }
|
| - }
|
| -
|
| // Make sure the GDI capture resources are up-to-date.
|
| PrepareCaptureResources();
|
|
|
|
|