| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // Extra test helper functionality | 180 // Extra test helper functionality |
| 181 bool IsBeginRetroFrameArgsEmpty() const { | 181 bool IsBeginRetroFrameArgsEmpty() const { |
| 182 return begin_retro_frame_args_.empty(); | 182 return begin_retro_frame_args_.empty(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool CanStart() const { return state_machine_.CanStartForTesting(); } | 185 bool CanStart() const { return state_machine_.CanStartForTesting(); } |
| 186 | 186 |
| 187 BeginFrameSource& frame_source() { return *frame_source_; } | 187 BeginFrameSource& frame_source() { return *frame_source_; } |
| 188 bool FrameProductionThrottled() { return throttle_frame_production_; } | 188 bool FrameProductionThrottled() { return throttle_frame_production_; } |
| 189 BeginFrameArgs begin_impl_frame_args() { return begin_impl_frame_args_; } |
| 189 | 190 |
| 190 ~TestScheduler() override; | 191 ~TestScheduler() override; |
| 191 | 192 |
| 192 void NotifyReadyToCommitThenActivateIfNeeded() { | 193 void NotifyReadyToCommitThenActivateIfNeeded() { |
| 193 NotifyReadyToCommit(); | 194 NotifyReadyToCommit(); |
| 194 if (settings_.impl_side_painting) { | 195 if (settings_.impl_side_painting) { |
| 195 NotifyReadyToActivate(); | 196 NotifyReadyToActivate(); |
| 196 } | 197 } |
| 197 } | 198 } |
| 198 | 199 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 209 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, | 210 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, |
| 210 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, | 211 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, |
| 211 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 212 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| 212 | 213 |
| 213 scoped_refptr<TestNowSource> now_src_; | 214 scoped_refptr<TestNowSource> now_src_; |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 } // namespace cc | 217 } // namespace cc |
| 217 | 218 |
| 218 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ | 219 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
| OLD | NEW |