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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 return observer_->LastUsedBeginFrameArgs(); | 83 return observer_->LastUsedBeginFrameArgs(); |
84 } | 84 } |
85 return BeginFrameArgs(); | 85 return BeginFrameArgs(); |
86 } | 86 } |
87 void TestOnBeginFrame(const BeginFrameArgs& args) { | 87 void TestOnBeginFrame(const BeginFrameArgs& args) { |
88 return CallOnBeginFrame(args); | 88 return CallOnBeginFrame(args); |
89 } | 89 } |
90 | 90 |
91 // BeginFrameSource | 91 // BeginFrameSource |
92 void DidFinishFrame(size_t remaining_frames) override; | 92 void DidFinishFrame(size_t remaining_frames) override; |
93 void AsValueInto(base::debug::TracedValue* dict) const override; | 93 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
94 | 94 |
95 ~FakeBeginFrameSource() override {} | 95 ~FakeBeginFrameSource() override {} |
96 }; | 96 }; |
97 | 97 |
98 class TestBackToBackBeginFrameSource : public BackToBackBeginFrameSource { | 98 class TestBackToBackBeginFrameSource : public BackToBackBeginFrameSource { |
99 public: | 99 public: |
100 ~TestBackToBackBeginFrameSource() override; | 100 ~TestBackToBackBeginFrameSource() override; |
101 | 101 |
102 static scoped_ptr<TestBackToBackBeginFrameSource> Create( | 102 static scoped_ptr<TestBackToBackBeginFrameSource> Create( |
103 scoped_refptr<TestNowSource> now_src, | 103 scoped_refptr<TestNowSource> now_src, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 base::PowerMonitor* power_monitor, | 212 base::PowerMonitor* power_monitor, |
213 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, | 213 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, |
214 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 214 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
215 | 215 |
216 scoped_refptr<TestNowSource> now_src_; | 216 scoped_refptr<TestNowSource> now_src_; |
217 }; | 217 }; |
218 | 218 |
219 } // namespace cc | 219 } // namespace cc |
220 | 220 |
221 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ | 221 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ |
OLD | NEW |