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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 130483010: cc: Limit ManageTiles calls to once per-frame on average (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 7d8fcd721a32059e07c9167647ea8b22aa7fc167..7763a71f633ffb3adbc21bf7d48156dcf3900e11 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -507,9 +507,9 @@ bool SchedulerStateMachine::IsCommitStateWaiting() const {
bool SchedulerStateMachine::ShouldManageTiles() const {
// ManageTiles only really needs to be called immediately after commit
- // and then periodically after that. Limiting to once per frame prevents
+ // and then periodically after that. Limiting to every other frame prevents
enne (OOO) 2014/01/15 19:26:44 Maybe I'm misunderstanding, but I don't think this
brianderson 2014/01/15 19:39:09 It's mainly a problem when the main thread is in t
// post-commit and post-draw ManageTiles on the same frame.
- if (last_frame_number_manage_tiles_called_ == current_frame_number_)
+ if (last_frame_number_manage_tiles_called_ + 1 >= current_frame_number_)
return false;
// Limiting to once per-frame is not enough, since we only want to
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698