Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Unified Diff: remoting/host/capturer_win.cc

Issue 9968071: Ensure display hardware is powered up during Chromoting sessions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/event_executor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | remoting/host/event_executor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698