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

Unified Diff: cc/scheduler/scheduler.cc

Issue 27200003: Trigger deadline immediately after an aborted main thread commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test DCHECK failure. Created 7 years, 2 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 | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index cc2325711107299339a39ccd190d0f6cf55cf154..3240028aa27f0f1265081f61c5ca13fcccf5a6cd 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -49,8 +49,6 @@ void Scheduler::NotifyReadyToActivate() {
void Scheduler::ActivatePendingTree() {
client_->ScheduledActionActivatePendingTree();
- if (state_machine_.ShouldTriggerBeginFrameDeadlineEarly())
- PostBeginFrameDeadline(base::TimeTicks());
}
void Scheduler::SetNeedsCommit() {
@@ -89,9 +87,6 @@ void Scheduler::FinishCommit() {
TRACE_EVENT0("cc", "Scheduler::FinishCommit");
state_machine_.FinishCommit();
ProcessScheduledActions();
-
- if (state_machine_.ShouldTriggerBeginFrameDeadlineEarly())
- PostBeginFrameDeadline(base::TimeTicks());
}
void Scheduler::BeginFrameAbortedByMainThread(bool did_handle) {
@@ -330,6 +325,9 @@ void Scheduler::ProcessScheduledActions() {
SetupNextBeginFrameIfNeeded();
client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
+
+ if (state_machine_.ShouldTriggerBeginFrameDeadlineEarly())
+ PostBeginFrameDeadline(base::TimeTicks());
}
bool Scheduler::WillDrawIfNeeded() const {
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698