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" |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 !has_pending_tree_) | 946 !has_pending_tree_) |
947 return true; | 947 return true; |
948 | 948 |
949 // Prioritize impl-thread draws in ImplLatencyTakesPriority mode. | 949 // Prioritize impl-thread draws in ImplLatencyTakesPriority mode. |
950 if (ImplLatencyTakesPriority()) | 950 if (ImplLatencyTakesPriority()) |
951 return true; | 951 return true; |
952 | 952 |
953 return false; | 953 return false; |
954 } | 954 } |
955 | 955 |
956 bool SchedulerStateMachine::main_thread_missed_last_deadline() const { | |
957 return main_thread_missed_last_deadline_; | |
958 } | |
959 | |
960 bool SchedulerStateMachine::SwapThrottled() const { | 956 bool SchedulerStateMachine::SwapThrottled() const { |
961 return pending_swaps_ >= kMaxPendingSwaps; | 957 return pending_swaps_ >= kMaxPendingSwaps; |
962 } | 958 } |
963 | 959 |
964 void SchedulerStateMachine::SetVisible(bool visible) { | 960 void SchedulerStateMachine::SetVisible(bool visible) { |
965 if (visible_ == visible) | 961 if (visible_ == visible) |
966 return; | 962 return; |
967 | 963 |
968 visible_ = visible; | 964 visible_ = visible; |
969 | 965 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 case OUTPUT_SURFACE_ACTIVE: | 1131 case OUTPUT_SURFACE_ACTIVE: |
1136 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: | 1132 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: |
1137 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: | 1133 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: |
1138 return true; | 1134 return true; |
1139 } | 1135 } |
1140 NOTREACHED(); | 1136 NOTREACHED(); |
1141 return false; | 1137 return false; |
1142 } | 1138 } |
1143 | 1139 |
1144 } // namespace cc | 1140 } // namespace cc |
OLD | NEW |