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 "config.h" | |
6 | |
7 #include "cc/scheduler.h" | 5 #include "cc/scheduler.h" |
8 | 6 |
9 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
10 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
11 #include "base/logging.h" | 9 #include "base/logging.h" |
12 | 10 |
13 namespace cc { | 11 namespace cc { |
14 | 12 |
15 Scheduler::Scheduler(SchedulerClient* client, scoped_ptr<FrameRateController> fr
ameRateController) | 13 Scheduler::Scheduler(SchedulerClient* client, scoped_ptr<FrameRateController> fr
ameRateController) |
16 : m_client(client) | 14 : m_client(client) |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 182 } |
185 action = m_stateMachine.nextAction(); | 183 action = m_stateMachine.nextAction(); |
186 } | 184 } |
187 | 185 |
188 // Activate or deactivate the frame rate controller. | 186 // Activate or deactivate the frame rate controller. |
189 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded()); | 187 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded()); |
190 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime()
); | 188 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime()
); |
191 } | 189 } |
192 | 190 |
193 } // namespace cc | 191 } // namespace cc |
OLD | NEW |