OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/scheduler.h" | 5 #include "cc/scheduler.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 void Scheduler::setNeedsCommit() | 46 void Scheduler::setNeedsCommit() |
47 { | 47 { |
48 m_stateMachine.setNeedsCommit(); | 48 m_stateMachine.setNeedsCommit(); |
49 processScheduledActions(); | 49 processScheduledActions(); |
50 } | 50 } |
51 | 51 |
52 void Scheduler::setNeedsForcedCommit() | 52 void Scheduler::setNeedsForcedCommit() |
53 { | 53 { |
| 54 m_stateMachine.setNeedsCommit(); |
54 m_stateMachine.setNeedsForcedCommit(); | 55 m_stateMachine.setNeedsForcedCommit(); |
55 processScheduledActions(); | 56 processScheduledActions(); |
56 } | 57 } |
57 | 58 |
58 void Scheduler::setNeedsRedraw() | 59 void Scheduler::setNeedsRedraw() |
59 { | 60 { |
60 m_stateMachine.setNeedsRedraw(); | 61 m_stateMachine.setNeedsRedraw(); |
61 processScheduledActions(); | 62 processScheduledActions(); |
62 } | 63 } |
63 | 64 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 183 } |
183 action = m_stateMachine.nextAction(); | 184 action = m_stateMachine.nextAction(); |
184 } | 185 } |
185 | 186 |
186 // Activate or deactivate the frame rate controller. | 187 // Activate or deactivate the frame rate controller. |
187 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded()); | 188 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded()); |
188 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime()
); | 189 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime()
); |
189 } | 190 } |
190 | 191 |
191 } // namespace cc | 192 } // namespace cc |
OLD | NEW |