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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest 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 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 // Extra test helper functionality 182 // Extra test helper functionality
183 bool IsBeginRetroFrameArgsEmpty() const { 183 bool IsBeginRetroFrameArgsEmpty() const {
184 return begin_retro_frame_args_.empty(); 184 return begin_retro_frame_args_.empty();
185 } 185 }
186 186
187 bool CanStart() const { return state_machine_.CanStartForTesting(); } 187 bool CanStart() const { return state_machine_.CanStartForTesting(); }
188 188
189 BeginFrameSource& frame_source() { return *frame_source_; } 189 BeginFrameSource& frame_source() { return *frame_source_; }
190 bool FrameProductionThrottled() { return throttle_frame_production_; } 190 bool FrameProductionThrottled() { return throttle_frame_production_; }
191 BeginFrameArgs begin_impl_frame_args() { return begin_impl_frame_args_; }
191 192
192 ~TestScheduler() override; 193 ~TestScheduler() override;
193 194
194 void NotifyReadyToCommitThenActivateIfNeeded() { 195 void NotifyReadyToCommitThenActivateIfNeeded() {
195 NotifyReadyToCommit(); 196 NotifyReadyToCommit();
196 if (settings_.impl_side_painting) { 197 if (settings_.impl_side_painting) {
197 NotifyReadyToActivate(); 198 NotifyReadyToActivate();
198 } 199 }
199 } 200 }
200 201
(...skipping 11 matching lines...) Expand all
212 base::PowerMonitor* power_monitor, 213 base::PowerMonitor* power_monitor,
213 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, 214 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
214 scoped_ptr<BeginFrameSource> external_begin_frame_source); 215 scoped_ptr<BeginFrameSource> external_begin_frame_source);
215 216
216 scoped_refptr<TestNowSource> now_src_; 217 scoped_refptr<TestNowSource> now_src_;
217 }; 218 };
218 219
219 } // namespace cc 220 } // namespace cc
220 221
221 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 222 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/trees/layer_tree_host.h » ('j') | ui/compositor/compositor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698