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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 state_machine_.DidSwapBuffers(); | 226 state_machine_.DidSwapBuffers(); |
227 | 227 |
228 // There is no need to call ProcessScheduledActions here because | 228 // There is no need to call ProcessScheduledActions here because |
229 // swapping should not trigger any new actions. | 229 // swapping should not trigger any new actions. |
230 if (!inside_process_scheduled_actions_) { | 230 if (!inside_process_scheduled_actions_) { |
231 DCHECK_EQ(state_machine_.NextAction(), SchedulerStateMachine::ACTION_NONE); | 231 DCHECK_EQ(state_machine_.NextAction(), SchedulerStateMachine::ACTION_NONE); |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 void Scheduler::SetSwapUsedIncompleteTile(bool used_incomplete_tile) { | 235 void Scheduler::SetSwapUsedIncompleteTile(bool used_incomplete_tile) { |
| 236 return; |
236 state_machine_.SetSwapUsedIncompleteTile(used_incomplete_tile); | 237 state_machine_.SetSwapUsedIncompleteTile(used_incomplete_tile); |
237 ProcessScheduledActions(); | 238 ProcessScheduledActions(); |
238 } | 239 } |
239 | 240 |
240 void Scheduler::DidSwapBuffersComplete() { | 241 void Scheduler::DidSwapBuffersComplete() { |
241 state_machine_.DidSwapBuffersComplete(); | 242 state_machine_.DidSwapBuffersComplete(); |
242 ProcessScheduledActions(); | 243 ProcessScheduledActions(); |
243 } | 244 } |
244 | 245 |
245 void Scheduler::SetImplLatencyTakesPriority(bool impl_latency_takes_priority) { | 246 void Scheduler::SetImplLatencyTakesPriority(bool impl_latency_takes_priority) { |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 } | 773 } |
773 | 774 |
774 bool Scheduler::IsBeginMainFrameSentOrStarted() const { | 775 bool Scheduler::IsBeginMainFrameSentOrStarted() const { |
775 return (state_machine_.commit_state() == | 776 return (state_machine_.commit_state() == |
776 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT || | 777 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT || |
777 state_machine_.commit_state() == | 778 state_machine_.commit_state() == |
778 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED); | 779 SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_STARTED); |
779 } | 780 } |
780 | 781 |
781 } // namespace cc | 782 } // namespace cc |
OLD | NEW |