Chromium Code Reviews| Index: cc/scheduler/scheduler_state_machine.cc |
| diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc |
| index 01252dd7aff1c21a0330eb5c9598a567658a6eb1..c065e26c04762f3feefce1517a2144c916f3f03b 100644 |
| --- a/cc/scheduler/scheduler_state_machine.cc |
| +++ b/cc/scheduler/scheduler_state_machine.cc |
| @@ -332,6 +332,10 @@ void SchedulerStateMachine::SetMainThreadNeedsLayerTextures() { |
| } |
| bool SchedulerStateMachine::BeginFrameNeededByImplThread() const { |
| + // We should proactively request a BeginFrame if a commit is pending. |
|
brianderson
2013/06/01 04:30:29
I would get hangs without this.
|
| + if (commit_state_ != COMMIT_STATE_IDLE) |
| + return true; |
| + |
| // If we have a pending tree, need to keep getting notifications until |
| // the tree is ready to be swapped. |
| if (has_pending_tree_) |