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

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

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/pixel_test_output_surface.cc ('k') | cc/test/scheduler_test_common.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_ 5 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_
6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return observer_->LastUsedBeginFrameArgs(); 83 return observer_->LastUsedBeginFrameArgs();
84 } 84 }
85 return BeginFrameArgs(); 85 return BeginFrameArgs();
86 } 86 }
87 void TestOnBeginFrame(const BeginFrameArgs& args) { 87 void TestOnBeginFrame(const BeginFrameArgs& args) {
88 return CallOnBeginFrame(args); 88 return CallOnBeginFrame(args);
89 } 89 }
90 90
91 // BeginFrameSource 91 // BeginFrameSource
92 void DidFinishFrame(size_t remaining_frames) override; 92 void DidFinishFrame(size_t remaining_frames) override;
93 void AsValueInto(base::debug::TracedValue* dict) const override; 93 void AsValueInto(base::trace_event::TracedValue* dict) const override;
94 94
95 ~FakeBeginFrameSource() override {} 95 ~FakeBeginFrameSource() override {}
96 }; 96 };
97 97
98 class TestBackToBackBeginFrameSource : public BackToBackBeginFrameSource { 98 class TestBackToBackBeginFrameSource : public BackToBackBeginFrameSource {
99 public: 99 public:
100 ~TestBackToBackBeginFrameSource() override; 100 ~TestBackToBackBeginFrameSource() override;
101 101
102 static scoped_ptr<TestBackToBackBeginFrameSource> Create( 102 static scoped_ptr<TestBackToBackBeginFrameSource> Create(
103 scoped_refptr<TestNowSource> now_src, 103 scoped_refptr<TestNowSource> now_src,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 base::PowerMonitor* power_monitor, 212 base::PowerMonitor* power_monitor,
213 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, 213 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
214 scoped_ptr<BeginFrameSource> external_begin_frame_source); 214 scoped_ptr<BeginFrameSource> external_begin_frame_source);
215 215
216 scoped_refptr<TestNowSource> now_src_; 216 scoped_refptr<TestNowSource> now_src_;
217 }; 217 };
218 218
219 } // namespace cc 219 } // namespace cc
220 220
221 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 221 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/test/scheduler_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698