| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |