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/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/debug/trace_event_argument.h" | 10 #include "base/debug/trace_event_argument.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 void Scheduler::SetCanDraw(bool can_draw) { | 190 void Scheduler::SetCanDraw(bool can_draw) { |
191 state_machine_.SetCanDraw(can_draw); | 191 state_machine_.SetCanDraw(can_draw); |
192 ProcessScheduledActions(); | 192 ProcessScheduledActions(); |
193 } | 193 } |
194 | 194 |
195 void Scheduler::NotifyReadyToActivate() { | 195 void Scheduler::NotifyReadyToActivate() { |
196 state_machine_.NotifyReadyToActivate(); | 196 state_machine_.NotifyReadyToActivate(); |
197 ProcessScheduledActions(); | 197 ProcessScheduledActions(); |
198 } | 198 } |
199 | 199 |
200 void Scheduler::NotifyReadyToDraw() { | |
201 // This is empty for now, until we take action based on the notification. | |
vmpstr
2014/10/24 18:02:24
Is there a TODO to go along or a bug number or som
ernstm
2014/10/27 21:13:57
Done.
| |
202 } | |
203 | |
200 void Scheduler::SetNeedsCommit() { | 204 void Scheduler::SetNeedsCommit() { |
201 state_machine_.SetNeedsCommit(); | 205 state_machine_.SetNeedsCommit(); |
202 ProcessScheduledActions(); | 206 ProcessScheduledActions(); |
203 } | 207 } |
204 | 208 |
205 void Scheduler::SetNeedsRedraw() { | 209 void Scheduler::SetNeedsRedraw() { |
206 state_machine_.SetNeedsRedraw(); | 210 state_machine_.SetNeedsRedraw(); |
207 ProcessScheduledActions(); | 211 ProcessScheduledActions(); |
208 } | 212 } |
209 | 213 |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
772 } | 776 } |
773 | 777 |
774 bool Scheduler::IsBeginMainFrameSentOrStarted() const { | 778 bool Scheduler::IsBeginMainFrameSentOrStarted() const { |
775 return (state_machine_.commit_state() == | 779 return (state_machine_.commit_state() == |
776 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT || | 780 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT || |
777 state_machine_.commit_state() == | 781 state_machine_.commit_state() == |
778 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED); | 782 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED); |
779 } | 783 } |
780 | 784 |
781 } // namespace cc | 785 } // namespace cc |
OLD | NEW |