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

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

Issue 1005553004: cc: Add support for handling authoritative vsync interval (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
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/trees/layer_tree_host.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 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Extra test helper functionality 180 // Extra test helper functionality
181 bool IsBeginRetroFrameArgsEmpty() const { 181 bool IsBeginRetroFrameArgsEmpty() const {
182 return begin_retro_frame_args_.empty(); 182 return begin_retro_frame_args_.empty();
183 } 183 }
184 184
185 bool CanStart() const { return state_machine_.CanStartForTesting(); } 185 bool CanStart() const { return state_machine_.CanStartForTesting(); }
186 186
187 BeginFrameSource& frame_source() { return *frame_source_; } 187 BeginFrameSource& frame_source() { return *frame_source_; }
188 bool FrameProductionThrottled() { return throttle_frame_production_; } 188 bool FrameProductionThrottled() { return throttle_frame_production_; }
189 BeginFrameArgs begin_impl_frame_args() { return begin_impl_frame_args_; }
189 190
190 ~TestScheduler() override; 191 ~TestScheduler() override;
191 192
192 void NotifyReadyToCommitThenActivateIfNeeded() { 193 void NotifyReadyToCommitThenActivateIfNeeded() {
193 NotifyReadyToCommit(); 194 NotifyReadyToCommit();
194 if (settings_.impl_side_painting) { 195 if (settings_.impl_side_painting) {
195 NotifyReadyToActivate(); 196 NotifyReadyToActivate();
196 } 197 }
197 } 198 }
198 199
(...skipping 10 matching lines...) Expand all
209 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner, 210 const scoped_refptr<OrderedSimpleTaskRunner>& test_task_runner,
210 TestSchedulerFrameSourcesConstructor* frame_sources_constructor, 211 TestSchedulerFrameSourcesConstructor* frame_sources_constructor,
211 scoped_ptr<BeginFrameSource> external_begin_frame_source); 212 scoped_ptr<BeginFrameSource> external_begin_frame_source);
212 213
213 scoped_refptr<TestNowSource> now_src_; 214 scoped_refptr<TestNowSource> now_src_;
214 }; 215 };
215 216
216 } // namespace cc 217 } // namespace cc
217 218
218 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 219 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698