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

Side by Side Diff: cc/scheduler.cc

Issue 11416043: Merge 167537 - Use message passing for BeginFrameAndCommitState and clean up forced commit logic (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: 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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/scheduler.h" 7 #include "cc/scheduler.h"
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 void Scheduler::setNeedsCommit() 48 void Scheduler::setNeedsCommit()
49 { 49 {
50 m_stateMachine.setNeedsCommit(); 50 m_stateMachine.setNeedsCommit();
51 processScheduledActions(); 51 processScheduledActions();
52 } 52 }
53 53
54 void Scheduler::setNeedsForcedCommit() 54 void Scheduler::setNeedsForcedCommit()
55 { 55 {
56 m_stateMachine.setNeedsCommit();
56 m_stateMachine.setNeedsForcedCommit(); 57 m_stateMachine.setNeedsForcedCommit();
57 processScheduledActions(); 58 processScheduledActions();
58 } 59 }
59 60
60 void Scheduler::setNeedsRedraw() 61 void Scheduler::setNeedsRedraw()
61 { 62 {
62 m_stateMachine.setNeedsRedraw(); 63 m_stateMachine.setNeedsRedraw();
63 processScheduledActions(); 64 processScheduledActions();
64 } 65 }
65 66
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 185 }
185 action = m_stateMachine.nextAction(); 186 action = m_stateMachine.nextAction();
186 } 187 }
187 188
188 // Activate or deactivate the frame rate controller. 189 // Activate or deactivate the frame rate controller.
189 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded()); 190 m_frameRateController->setActive(m_stateMachine.vsyncCallbackNeeded());
190 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime() ); 191 m_client->didAnticipatedDrawTimeChange(m_frameRateController->nextTickTime() );
191 } 192 }
192 193
193 } // namespace cc 194 } // 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