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