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

Unified Diff: ash/system/chromeos/power/power_event_observer.h

Issue 910393002: Disable rendering when suspending on chrome os (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years, 10 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
Index: ash/system/chromeos/power/power_event_observer.h
diff --git a/ash/system/chromeos/power/power_event_observer.h b/ash/system/chromeos/power/power_event_observer.h
index 941e234edd938db53e5fe6c8832c67c4f896e53b..6650d2c27f1ec1bc745311049208b4c16eb0f607 100644
--- a/ash/system/chromeos/power/power_event_observer.h
+++ b/ash/system/chromeos/power/power_event_observer.h
@@ -40,6 +40,14 @@ class ASH_EXPORT PowerEventObserver
base::Closure screen_lock_callback_;
private:
+ // Tells the compositor for each of the displays to resume sending rendering
+ // requests to the GPU.
+ void ResumeRenderingRequests();
+
+ // Tells the compositor for each of the displays to finish all pending
+ // rendering requests and block any new ones.
+ void StopRenderingRequests();
Daniel Erat 2015/02/11 14:11:42 nit: switch the order of these two methods to mirr
+
DISALLOW_COPY_AND_ASSIGN(PowerEventObserver);
};
« no previous file with comments | « no previous file | ash/system/chromeos/power/power_event_observer.cc » ('j') | ash/system/chromeos/power/power_event_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698