Index: remoting/host/capturer_win.cc |
diff --git a/remoting/host/capturer_win.cc b/remoting/host/capturer_win.cc |
index 98a1a37493cba88ac4f6e8fedb4edc98869bba6b..74652a5a34b9390ab560de372c1c62f2141c0bd7 100644 |
--- a/remoting/host/capturer_win.cc |
+++ b/remoting/host/capturer_win.cc |
@@ -153,6 +153,10 @@ void CapturerGdi::InvalidateFullScreen() { |
void CapturerGdi::CaptureInvalidRegion( |
const CaptureCompletedCallback& callback) { |
+ // Force the system to power-up display hardware, if it has been suspended. |
+ SetThreadExecutionState(ES_DISPLAY_REQUIRED); |
+ |
+ // Perform the capture. |
CalculateInvalidRegion(); |
SkRegion invalid_region; |
helper_.SwapInvalidRegion(&invalid_region); |