| 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 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 return estimated_draw_time < args.deadline; | 791 return estimated_draw_time < args.deadline; |
| 792 } | 792 } |
| 793 | 793 |
| 794 bool Scheduler::IsBeginMainFrameSentOrStarted() const { | 794 bool Scheduler::IsBeginMainFrameSentOrStarted() const { |
| 795 return (state_machine_.begin_main_frame_state() == | 795 return (state_machine_.begin_main_frame_state() == |
| 796 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_SENT || | 796 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_SENT || |
| 797 state_machine_.begin_main_frame_state() == | 797 state_machine_.begin_main_frame_state() == |
| 798 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_STARTED); | 798 SchedulerStateMachine::BEGIN_MAIN_FRAME_STATE_STARTED); |
| 799 } | 799 } |
| 800 | 800 |
| 801 BeginFrameAck Scheduler::CurrentBeginFrameAckForActiveTree() const { |
| 802 return BeginFrameAck( |
| 803 begin_main_frame_args_.source_id, begin_main_frame_args_.sequence_number, |
| 804 state_machine_.last_begin_frame_sequence_number_active_tree_was_fresh(), |
| 805 0, true); |
| 806 } |
| 807 |
| 801 } // namespace cc | 808 } // namespace cc |
| OLD | NEW |