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/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/debug/trace_event_argument.h" | 8 #include "base/debug/trace_event_argument.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 | 1079 |
1080 case OUTPUT_SURFACE_ACTIVE: | 1080 case OUTPUT_SURFACE_ACTIVE: |
1081 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: | 1081 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: |
1082 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: | 1082 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: |
1083 return true; | 1083 return true; |
1084 } | 1084 } |
1085 NOTREACHED(); | 1085 NOTREACHED(); |
1086 return false; | 1086 return false; |
1087 } | 1087 } |
1088 | 1088 |
| 1089 std::string SchedulerStateMachine::GetStatesForDebugging() const { |
| 1090 return base::StringPrintf("%c %d %d %d %c %c %c %d %d", |
| 1091 needs_commit_ ? 'T' : 'F', |
| 1092 static_cast<int>(output_surface_state_), |
| 1093 static_cast<int>(begin_impl_frame_state_), |
| 1094 static_cast<int>(commit_state_), |
| 1095 has_pending_tree_ ? 'T' : 'F', |
| 1096 pending_tree_is_ready_for_activation_ ? 'T' : 'F', |
| 1097 active_tree_needs_first_draw_ ? 'T' : 'F', |
| 1098 max_pending_swaps_, |
| 1099 pending_swaps_); |
| 1100 } |
| 1101 |
1089 } // namespace cc | 1102 } // namespace cc |
OLD | NEW |