Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Side by Side Diff: cc/test/scheduler_test_common.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/test/test_context_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.h ('k') | cc/test/test_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698