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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 }; | 134 }; |
135 | 135 |
136 class TestScheduler; | 136 class TestScheduler; |
137 class TestSchedulerFrameSourcesConstructor | 137 class TestSchedulerFrameSourcesConstructor |
138 : public SchedulerFrameSourcesConstructor { | 138 : public SchedulerFrameSourcesConstructor { |
139 public: | 139 public: |
140 ~TestSchedulerFrameSourcesConstructor() override; | 140 ~TestSchedulerFrameSourcesConstructor() override; |
141 | 141 |
142 protected: | 142 protected: |
143 BeginFrameSource* ConstructPrimaryFrameSource(Scheduler* scheduler) override; | 143 BeginFrameSource* ConstructPrimaryFrameSource(Scheduler* scheduler) override; |
144 BeginFrameSource* ConstructBackgroundFrameSource( | |
145 Scheduler* scheduler) override; | |
146 BeginFrameSource* ConstructUnthrottledFrameSource( | 144 BeginFrameSource* ConstructUnthrottledFrameSource( |
147 Scheduler* scheduler) override; | 145 Scheduler* scheduler) override; |
148 | 146 |
149 OrderedSimpleTaskRunner* test_task_runner_; | 147 OrderedSimpleTaskRunner* test_task_runner_; |
150 TestNowSource* now_src_; | 148 TestNowSource* now_src_; |
151 | 149 |
152 protected: | 150 protected: |
153 explicit TestSchedulerFrameSourcesConstructor( | 151 explicit TestSchedulerFrameSourcesConstructor( |
154 OrderedSimpleTaskRunner* test_task_runner, | 152 OrderedSimpleTaskRunner* test_task_runner, |
155 TestNowSource* now_src); | 153 TestNowSource* now_src); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, | 208 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, |
211 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, | 209 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, |
212 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 210 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
213 | 211 |
214 scoped_refptr<TestNowSource> now_src_; | 212 scoped_refptr<TestNowSource> now_src_; |
215 }; | 213 }; |
216 | 214 |
217 } // namespace cc | 215 } // namespace cc |
218 | 216 |
219 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ | 217 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
OLD | NEW |