| 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_state_machine.h" | 5 #include "cc/scheduler_state_machine.h" |
| 8 | 6 |
| 9 #include "base/logging.h" | 7 #include "base/logging.h" |
| 10 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 11 #include "cc/settings.h" | 9 #include "cc/settings.h" |
| 12 | 10 |
| 13 namespace cc { | 11 namespace cc { |
| 14 | 12 |
| 15 SchedulerStateMachine::SchedulerStateMachine() | 13 SchedulerStateMachine::SchedulerStateMachine() |
| 16 : m_commitState(COMMIT_STATE_IDLE) | 14 : m_commitState(COMMIT_STATE_IDLE) |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 m_contextState = CONTEXT_ACTIVE; | 308 m_contextState = CONTEXT_ACTIVE; |
| 311 setNeedsCommit(); | 309 setNeedsCommit(); |
| 312 } | 310 } |
| 313 | 311 |
| 314 void SchedulerStateMachine::setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int
numDraws) | 312 void SchedulerStateMachine::setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int
numDraws) |
| 315 { | 313 { |
| 316 m_maximumNumberOfFailedDrawsBeforeDrawIsForced = numDraws; | 314 m_maximumNumberOfFailedDrawsBeforeDrawIsForced = numDraws; |
| 317 } | 315 } |
| 318 | 316 |
| 319 } // namespace cc | 317 } // namespace cc |
| OLD | NEW |