| 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_state_machine.h" | 5 #include "cc/scheduler_state_machine.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "cc/settings.h" | |
| 10 | 9 |
| 11 namespace cc { | 10 namespace cc { |
| 12 | 11 |
| 13 SchedulerStateMachine::SchedulerStateMachine() | 12 SchedulerStateMachine::SchedulerStateMachine() |
| 14 : m_commitState(COMMIT_STATE_IDLE) | 13 : m_commitState(COMMIT_STATE_IDLE) |
| 15 , m_currentFrameNumber(0) | 14 , m_currentFrameNumber(0) |
| 16 , m_lastFrameNumberWhereDrawWasCalled(-1) | 15 , m_lastFrameNumberWhereDrawWasCalled(-1) |
| 17 , m_consecutiveFailedDraws(0) | 16 , m_consecutiveFailedDraws(0) |
| 18 , m_maximumNumberOfFailedDrawsBeforeDrawIsForced(3) | 17 , m_maximumNumberOfFailedDrawsBeforeDrawIsForced(3) |
| 19 , m_needsRedraw(false) | 18 , m_needsRedraw(false) |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 m_contextState = CONTEXT_ACTIVE; | 320 m_contextState = CONTEXT_ACTIVE; |
| 322 setNeedsCommit(); | 321 setNeedsCommit(); |
| 323 } | 322 } |
| 324 | 323 |
| 325 void SchedulerStateMachine::setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int
numDraws) | 324 void SchedulerStateMachine::setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int
numDraws) |
| 326 { | 325 { |
| 327 m_maximumNumberOfFailedDrawsBeforeDrawIsForced = numDraws; | 326 m_maximumNumberOfFailedDrawsBeforeDrawIsForced = numDraws; |
| 328 } | 327 } |
| 329 | 328 |
| 330 } // namespace cc | 329 } // namespace cc |
| OLD | NEW |