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

Unified Diff: cc/scheduler/scheduler.cc

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP Created 6 years, 6 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: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 4a682cdb4418f973bbae6475caf8831f4688ab2e..80d2b76478ea35c623b14ae2667e1d5d3f9980f5 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -612,6 +612,12 @@ void Scheduler::DrawAndSwapIfPossible() {
state_machine_.DidDrawIfPossibleCompleted(result);
}
+void Scheduler::SetDeferCommits(bool defer_commits) {
+ TRACE_EVENT0("cc", "Scheduler::SetDeferCommits");
+ state_machine_.SetDeferCommits(defer_commits);
+ ProcessScheduledActions();
+}
+
void Scheduler::ProcessScheduledActions() {
// We do not allow ProcessScheduledActions to be recursive.
// The top-level call will iteratively execute the next action for us anyway.

Powered by Google App Engine
This is Rietveld 408576698