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

Unified Diff: cc/scheduler/scheduler.cc

Issue 23907006: cc: Allow sending BeginMainFrame before draw or activation (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedDeadline3
Patch Set: Fix smoothness mode Created 6 years, 11 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 d31f042e76180bc872aa2aa336614306b13ef39a..125a06a2dd6afaa97bddc02009c27cd82d6e074d 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -372,7 +372,10 @@ void Scheduler::ProcessScheduledActions() {
} while (action != SchedulerStateMachine::ACTION_NONE);
SetupNextBeginImplFrameIfNeeded();
- client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
+
+ if (SchedulerStateMachine::COMMIT_STATE_FRAME_IN_PROGRESS ==
enne (OOO) 2014/01/23 21:51:55 Why do you only update the anticipated draw time d
brianderson 2014/01/23 23:31:35 It avoided a PostTask storm of some sort. I'll see
+ state_machine_.commit_state())
+ client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
if (state_machine_.ShouldTriggerBeginImplFrameDeadlineEarly())
PostBeginImplFrameDeadline(base::TimeTicks());

Powered by Google App Engine
This is Rietveld 408576698