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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index c69c9595837297b61ad33719e4e763d26875931e..6dbcbed31a288f56f6bc14c8f9d02a396af6f00f 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -243,6 +243,8 @@ class CC_EXPORT SchedulerStateMachine {
impl_latency_takes_priority_on_battery;
}
+ void SetDeferCommits(bool defer_commits);
+
// TODO(zmo): This is temporary for debugging crbug.com/393331.
// We should remove it afterwards.
std::string GetStatesForDebugging() const;
@@ -323,6 +325,7 @@ class CC_EXPORT SchedulerStateMachine {
bool continuous_painting_;
bool impl_latency_takes_priority_on_battery_;
bool children_need_begin_frames_;
+ bool defer_commits_;
private:
DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);

Powered by Google App Engine
This is Rietveld 408576698