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

Unified Diff: cc/test/scheduler_test_common.h

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/test/layer_tree_test.cc ('k') | cc/trees/draw_property_utils.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 ea6b2ef50d24b23fae5ed80994f4b39fb3f64a3d..d1e599d20f74c8337bed04f0ae7edd4f0055ae88 100644
--- a/cc/test/scheduler_test_common.h
+++ b/cc/test/scheduler_test_common.h
@@ -182,10 +182,19 @@ class TestScheduler : public Scheduler {
return begin_retro_frame_args_.empty();
}
+ bool CanStart() const { return state_machine_.CanStartForTesting(); }
+
BeginFrameSource& frame_source() { return *frame_source_; }
~TestScheduler() override;
+ void NotifyReadyToCommitThenActivateIfNeeded() {
+ NotifyReadyToCommit();
+ if (settings_.impl_side_painting) {
+ NotifyReadyToActivate();
+ }
+ }
+
protected:
// Overridden from Scheduler.
base::TimeTicks Now() const override;
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698