Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: cc/scheduler_state_machine.cc

Issue 11361223: cc: Remove cc::settings, move them to LayerTreeSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-unittests Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/scheduler.h ('k') | cc/settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/scheduler.h ('k') | cc/settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698