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

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

Issue 1026233002: cc: Making BeginFrameSources support multiple BeginFrameObservers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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( 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
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
OLDNEW
« cc/scheduler/begin_frame_source.cc ('K') | « cc/test/scheduler_test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698