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

Unified Diff: cc/scheduler/scheduler.h

Issue 54913003: Scheduler: Switch from high to low latency mode if possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add checks for MainThreadIsInHighLatencyMode. Created 7 years, 1 month 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 | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index 1a284f187d5c1ac2193fcf7e9baf1c24d0c6ae73..5a5053c26e3dab7390bc0ec13e6b69e28c1e29e5 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -102,6 +102,9 @@ class CC_EXPORT Scheduler {
bool ManageTilesPending() const {
return state_machine_.ManageTilesPending();
}
+ bool MainThreadIsInHighLatencyMode() const {
+ return state_machine_.MainThreadIsInHighLatencyMode();
+ }
bool WillDrawIfNeeded() const;
@@ -133,6 +136,8 @@ class CC_EXPORT Scheduler {
void DrawAndReadback();
void ProcessScheduledActions();
+ bool CanCommitAndActivateBeforeDeadline() const;
+
const SchedulerSettings settings_;
SchedulerClient* client_;
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698