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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 23892022: cc: Always use SetNeedsBeginFrame to request the next BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 009cf4bdb59e61ecaf44ae268efc1359caf24a19..7b0ceca166023d5755f77592a40a4f97b0093fae 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -740,6 +740,11 @@ bool SchedulerStateMachine::ProactiveBeginFrameWantedByImplThread() const {
if (has_pending_tree_)
return true;
+ // If we just swapped, it's likely that we are going to produce another
+ // frame soon.
+ if (last_frame_number_swap_performed_ == current_frame_number_)
enne (OOO) 2013/09/13 17:48:44 Just as a sanity check, the bugfix here is that al
brianderson 2013/09/13 18:24:46 Your understand is correct. The Scheduler can acce
+ return true;
+
return false;
}

Powered by Google App Engine
This is Rietveld 408576698