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

Side by Side Diff: cc/scheduler/scheduler.cc

Issue 191293004: cc: Rename FinishCommit to NotifyReadyToCommit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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/scheduler.h ('k') | cc/scheduler/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/scheduler.h" 5 #include "cc/scheduler/scheduler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include "base/auto_reset.h" 8 #include "base/auto_reset.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void Scheduler::SetSmoothnessTakesPriority(bool smoothness_takes_priority) { 84 void Scheduler::SetSmoothnessTakesPriority(bool smoothness_takes_priority) {
85 state_machine_.SetSmoothnessTakesPriority(smoothness_takes_priority); 85 state_machine_.SetSmoothnessTakesPriority(smoothness_takes_priority);
86 ProcessScheduledActions(); 86 ProcessScheduledActions();
87 } 87 }
88 88
89 void Scheduler::SetMainThreadNeedsLayerTextures() { 89 void Scheduler::SetMainThreadNeedsLayerTextures() {
90 state_machine_.SetMainThreadNeedsLayerTextures(); 90 state_machine_.SetMainThreadNeedsLayerTextures();
91 ProcessScheduledActions(); 91 ProcessScheduledActions();
92 } 92 }
93 93
94 void Scheduler::FinishCommit() { 94 void Scheduler::NotifyReadyToCommit() {
95 TRACE_EVENT0("cc", "Scheduler::FinishCommit"); 95 TRACE_EVENT0("cc", "Scheduler::NotifyReadyToCommit");
96 state_machine_.FinishCommit(); 96 state_machine_.NotifyReadyToCommit();
97 ProcessScheduledActions(); 97 ProcessScheduledActions();
98 } 98 }
99 99
100 void Scheduler::BeginMainFrameAborted(bool did_handle) { 100 void Scheduler::BeginMainFrameAborted(bool did_handle) {
101 TRACE_EVENT0("cc", "Scheduler::BeginMainFrameAborted"); 101 TRACE_EVENT0("cc", "Scheduler::BeginMainFrameAborted");
102 state_machine_.BeginMainFrameAborted(did_handle); 102 state_machine_.BeginMainFrameAborted(did_handle);
103 ProcessScheduledActions(); 103 ProcessScheduledActions();
104 } 104 }
105 105
106 void Scheduler::DidManageTiles() { 106 void Scheduler::DidManageTiles() {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } 419 }
420 420
421 bool Scheduler::IsBeginMainFrameSentOrStarted() const { 421 bool Scheduler::IsBeginMainFrameSentOrStarted() const {
422 return (state_machine_.commit_state() == 422 return (state_machine_.commit_state() ==
423 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT || 423 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT ||
424 state_machine_.commit_state() == 424 state_machine_.commit_state() ==
425 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED); 425 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED);
426 } 426 }
427 427
428 } // namespace cc 428 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/scheduler/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698