OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "cc/test/scheduler_test_common.h" | 5 #include "cc/test/scheduler_test_common.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 std::string TestDelayBasedTimeSource::TypeString() const { | 30 std::string TestDelayBasedTimeSource::TypeString() const { |
31 return "TestDelayBasedTimeSource"; | 31 return "TestDelayBasedTimeSource"; |
32 } | 32 } |
33 | 33 |
34 TestDelayBasedTimeSource::~TestDelayBasedTimeSource() { | 34 TestDelayBasedTimeSource::~TestDelayBasedTimeSource() { |
35 } | 35 } |
36 | 36 |
37 void FakeBeginFrameSource::DidFinishFrame(size_t remaining_frames) { | 37 void FakeBeginFrameSource::DidFinishFrame(size_t remaining_frames) { |
38 remaining_frames_ = remaining_frames; | 38 remaining_frames_ = remaining_frames; |
39 } | 39 } |
40 void FakeBeginFrameSource::AsValueInto(base::debug::TracedValue* dict) const { | 40 void FakeBeginFrameSource::AsValueInto( |
| 41 base::trace_event::TracedValue* dict) const { |
41 dict->SetString("type", "FakeBeginFrameSource"); | 42 dict->SetString("type", "FakeBeginFrameSource"); |
42 BeginFrameSourceMixIn::AsValueInto(dict); | 43 BeginFrameSourceMixIn::AsValueInto(dict); |
43 } | 44 } |
44 | 45 |
45 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource( | 46 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource( |
46 scoped_refptr<TestNowSource> now_src, | 47 scoped_refptr<TestNowSource> now_src, |
47 base::SingleThreadTaskRunner* task_runner) | 48 base::SingleThreadTaskRunner* task_runner) |
48 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) { | 49 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) { |
49 } | 50 } |
50 | 51 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 145 } |
145 | 146 |
146 base::TimeTicks TestScheduler::Now() const { | 147 base::TimeTicks TestScheduler::Now() const { |
147 return now_src_->Now(); | 148 return now_src_->Now(); |
148 } | 149 } |
149 | 150 |
150 TestScheduler::~TestScheduler() { | 151 TestScheduler::~TestScheduler() { |
151 } | 152 } |
152 | 153 |
153 } // namespace cc | 154 } // namespace cc |
OLD | NEW |