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

Unified Diff: cc/scheduler/scheduler.cc

Issue 2418593002: Fix scheduler bug in skipping main frames (Closed)
Patch Set: Created 4 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_unittest.cc » ('j') | cc/scheduler/scheduler_unittest.cc » ('J')
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 52aa2bb7e66cd589623f3bc6c3ce2189ff019241..41bd1f9ee5310e212f1d65d473a8a98cb402fb52 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -742,8 +742,7 @@ bool Scheduler::CanBeginMainFrameAndActivateBeforeDeadline(
base::TimeDelta bmf_to_activate_estimate) const {
// Check if the main thread computation and commit can be finished before the
// impl thread's deadline.
- base::TimeTicks estimated_draw_time =
- args.frame_time + bmf_to_activate_estimate;
+ base::TimeTicks estimated_draw_time = Now() + bmf_to_activate_estimate;
return estimated_draw_time < args.deadline;
}
« no previous file with comments | « no previous file | cc/scheduler/scheduler_unittest.cc » ('j') | cc/scheduler/scheduler_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698