| 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_state_machine.h" | 5 #include "cc/scheduler/scheduler_state_machine.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| 11 #include "base/trace_event/trace_event_argument.h" | 11 #include "base/trace_event/trace_event_argument.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "ui/gfx/frame_time.h" | |
| 14 | 13 |
| 15 namespace cc { | 14 namespace cc { |
| 16 | 15 |
| 17 SchedulerStateMachine::SchedulerStateMachine(const SchedulerSettings& settings) | 16 SchedulerStateMachine::SchedulerStateMachine(const SchedulerSettings& settings) |
| 18 : settings_(settings), | 17 : settings_(settings), |
| 19 output_surface_state_(OUTPUT_SURFACE_LOST), | 18 output_surface_state_(OUTPUT_SURFACE_LOST), |
| 20 begin_impl_frame_state_(BEGIN_IMPL_FRAME_STATE_IDLE), | 19 begin_impl_frame_state_(BEGIN_IMPL_FRAME_STATE_IDLE), |
| 21 commit_state_(COMMIT_STATE_IDLE), | 20 commit_state_(COMMIT_STATE_IDLE), |
| 22 forced_redraw_state_(FORCED_REDRAW_STATE_IDLE), | 21 forced_redraw_state_(FORCED_REDRAW_STATE_IDLE), |
| 23 commit_count_(0), | 22 commit_count_(0), |
| (...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 static_cast<int>(begin_impl_frame_state_), | 1167 static_cast<int>(begin_impl_frame_state_), |
| 1169 static_cast<int>(commit_state_), | 1168 static_cast<int>(commit_state_), |
| 1170 has_pending_tree_ ? 'T' : 'F', | 1169 has_pending_tree_ ? 'T' : 'F', |
| 1171 pending_tree_is_ready_for_activation_ ? 'T' : 'F', | 1170 pending_tree_is_ready_for_activation_ ? 'T' : 'F', |
| 1172 active_tree_needs_first_draw_ ? 'T' : 'F', | 1171 active_tree_needs_first_draw_ ? 'T' : 'F', |
| 1173 max_pending_swaps_, | 1172 max_pending_swaps_, |
| 1174 pending_swaps_); | 1173 pending_swaps_); |
| 1175 } | 1174 } |
| 1176 | 1175 |
| 1177 } // namespace cc | 1176 } // namespace cc |
| OLD | NEW |