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

Unified Diff: cc/test/layer_tree_test.h

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 1 month 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
Index: cc/test/layer_tree_test.h
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index 2914cfcf8ee65dfd8896f57c480f8db709f15df1..3438525318b3bc6864e1340207bebb36e5e0416f 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -85,7 +85,6 @@ class TestHooks : public AnimationDelegate {
virtual void DidCommit() {}
virtual void DidCommitAndDrawFrame() {}
virtual void DidCompleteSwapBuffers() {}
- virtual void DidDeferCommit() {}
virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
bool visible) {}
virtual void ScheduleComposite() {}
@@ -134,6 +133,7 @@ class LayerTreeTest : public testing::Test, public TestHooks {
virtual void EndTest();
void EndTestAfterDelayMs(int delay_milliseconds);
+ void PostSetDeferCommitsToMainThread(bool defer_commits);
void PostAddAnimationToMainThread(Layer* layer_to_receive_animation);
void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation);
void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation);
@@ -165,6 +165,7 @@ class LayerTreeTest : public testing::Test, public TestHooks {
void DispatchSetNextCommitForcesRedraw();
void DispatchDidAddAnimation();
void DispatchCompositeImmediately();
+ void DispatchSetDeferCommits(bool defer_commits);
virtual void AfterTest() = 0;
virtual void WillBeginTest();

Powered by Google App Engine
This is Rietveld 408576698