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( | 40 void FakeBeginFrameSource::AsValueInto(base::trace_event::TracedValue* dict) { |
41 base::trace_event::TracedValue* dict) const { | |
42 dict->SetString("type", "FakeBeginFrameSource"); | 41 dict->SetString("type", "FakeBeginFrameSource"); |
43 BeginFrameSourceMixIn::AsValueInto(dict); | 42 BeginFrameSourceMixIn::AsValueInto(dict); |
44 } | 43 } |
45 | 44 |
46 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource( | 45 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource( |
47 scoped_refptr<TestNowSource> now_src, | 46 scoped_refptr<TestNowSource> now_src, |
48 base::SingleThreadTaskRunner* task_runner) | 47 base::SingleThreadTaskRunner* task_runner) |
49 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) { | 48 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) { |
50 } | 49 } |
51 | 50 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 142 } |
144 | 143 |
145 base::TimeTicks TestScheduler::Now() const { | 144 base::TimeTicks TestScheduler::Now() const { |
146 return now_src_->Now(); | 145 return now_src_->Now(); |
147 } | 146 } |
148 | 147 |
149 TestScheduler::~TestScheduler() { | 148 TestScheduler::~TestScheduler() { |
150 } | 149 } |
151 | 150 |
152 } // namespace cc | 151 } // namespace cc |
OLD | NEW |