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

Unified Diff: cc/test/scheduler_test_common.h

Issue 2386183003: Revert of cc: Remove frame queuing from the scheduler. (patchset #14 id:400001 of https://coderevie… (Closed)
Patch Set: fix revert Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | cc/test/test_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/scheduler_test_common.h
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
index b13341bcce37ea8546d1431f1ff6a6e05a88ece3..c3d6753bb228f1c4eccdfdd4e8e0b73a25233f7a 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -128,6 +128,11 @@ class TestScheduler : public Scheduler {
OrderedSimpleTaskRunner* task_runner,
std::unique_ptr<CompositorTimingHistory> compositor_timing_history);
+ // Extra test helper functionality
+ bool IsBeginRetroFrameArgsEmpty() const {
+ return begin_retro_frame_args_.empty();
+ }
+
bool SwapThrottled() const { return state_machine_.SwapThrottled(); }
bool NeedsBeginMainFrame() const {
@@ -144,10 +149,6 @@ class TestScheduler : public Scheduler {
return begin_frame_source_ && observing_begin_frame_source_;
}
- int current_frame_number() const {
- return state_machine_.current_frame_number();
- }
-
~TestScheduler() override;
base::TimeDelta BeginImplFrameInterval() {
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | cc/test/test_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698