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

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

Issue 1136123009: Remove "mixin" from BeginFrameSource/Observer base classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated comments Created 5 years, 6 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 22 matching lines...) Expand all
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(
41 base::trace_event::TracedValue* dict) const { 41 base::trace_event::TracedValue* dict) const {
42 dict->SetString("type", "FakeBeginFrameSource"); 42 dict->SetString("type", "FakeBeginFrameSource");
43 BeginFrameSourceMixIn::AsValueInto(dict); 43 BeginFrameSourceBase::AsValueInto(dict);
44 } 44 }
45 45
46 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource( 46 TestBackToBackBeginFrameSource::TestBackToBackBeginFrameSource(
47 scoped_refptr<TestNowSource> now_src, 47 scoped_refptr<TestNowSource> now_src,
48 base::SingleThreadTaskRunner* task_runner) 48 base::SingleThreadTaskRunner* task_runner)
49 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) { 49 : BackToBackBeginFrameSource(task_runner), now_src_(now_src) {
50 } 50 }
51 51
52 TestBackToBackBeginFrameSource::~TestBackToBackBeginFrameSource() { 52 TestBackToBackBeginFrameSource::~TestBackToBackBeginFrameSource() {
53 } 53 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 base::TimeTicks TestScheduler::Now() const { 130 base::TimeTicks TestScheduler::Now() const {
131 return now_src_->Now(); 131 return now_src_->Now();
132 } 132 }
133 133
134 TestScheduler::~TestScheduler() { 134 TestScheduler::~TestScheduler() {
135 } 135 }
136 136
137 } // namespace cc 137 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698