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

Side by Side Diff: cc/scheduler.cc

Issue 11362054: Use message passing for BeginFrameAndCommitState and clean up forced commit logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows signed/unsigned warning 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/layer_tree_host_unittest.cc ('k') | cc/scheduler_state_machine.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.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
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
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
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698