| 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 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ | 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 BeginFrameSource& frame_source() { return *begin_frame_source_; } | 137 BeginFrameSource& frame_source() { return *begin_frame_source_; } |
| 138 | 138 |
| 139 bool MainThreadMissedLastDeadline() const { | 139 bool MainThreadMissedLastDeadline() const { |
| 140 return state_machine_.main_thread_missed_last_deadline(); | 140 return state_machine_.main_thread_missed_last_deadline(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 bool begin_frames_expected() const { | 143 bool begin_frames_expected() const { |
| 144 return begin_frame_source_ && observing_begin_frame_source_; | 144 return begin_frame_source_ && observing_begin_frame_source_; |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool BeginFrameNeeded() const { return state_machine_.BeginFrameNeeded(); } |
| 148 |
| 147 int current_frame_number() const { | 149 int current_frame_number() const { |
| 148 return state_machine_.current_frame_number(); | 150 return state_machine_.current_frame_number(); |
| 149 } | 151 } |
| 150 | 152 |
| 151 bool needs_impl_side_invalidation() const { | 153 bool needs_impl_side_invalidation() const { |
| 152 return state_machine_.needs_impl_side_invalidation(); | 154 return state_machine_.needs_impl_side_invalidation(); |
| 153 } | 155 } |
| 154 | 156 |
| 155 ~TestScheduler() override; | 157 ~TestScheduler() override; |
| 156 | 158 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 172 | 174 |
| 173 private: | 175 private: |
| 174 base::SimpleTestTickClock* now_src_; | 176 base::SimpleTestTickClock* now_src_; |
| 175 | 177 |
| 176 DISALLOW_COPY_AND_ASSIGN(TestScheduler); | 178 DISALLOW_COPY_AND_ASSIGN(TestScheduler); |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 } // namespace cc | 181 } // namespace cc |
| 180 | 182 |
| 181 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ | 183 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| OLD | NEW |