summaryrefslogtreecommitdiffstats
path: root/cc/test/layer_tree_test.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-08-28 12:28:59 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-28 19:29:31 +0000
commitb56d7d81c1d3a9f93f819faee2e0de5ccc315edf (patch)
tree54690d8bebd18c59296a92f8b10d833f37604a5c /cc/test/layer_tree_test.h
parent35179fe97bd4a26a165b76aa95a82f21e1ba47cb (diff)
downloadchromium_src-b56d7d81c1d3a9f93f819faee2e0de5ccc315edf.zip
chromium_src-b56d7d81c1d3a9f93f819faee2e0de5ccc315edf.tar.gz
chromium_src-b56d7d81c1d3a9f93f819faee2e0de5ccc315edf.tar.bz2
cc: Do Animate() for the new pending tree on CommitComplete.
This adds an Animate() call in LayerTreeHostImpl::CommitComplete. This call will move any animations on the new pending tree that are ready from the WAITING_FOR_TARGET_AVAILABILITY to the STARTING state, allowing them to notify the layers they are attached to of their new animated values. Doing this before UpdateDrawProperties ensures that the draw properties reflect the animations in order to prepare the correct tiles for activating. This adds a new test that verifies we do start animations on the pending tree, and that the properties propogate to the layers they are on, both in single thread (commit-to-active) and in threaded mode. It also adds a test that verifies we request new animation frames when a layer animation is active from LayerTreeHostImpl, similar to other tests we have for animating scrollbars or pinch zoom, etc. R=ajuma, brianderson BUG=522658 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1319073002 Cr-Commit-Position: refs/heads/master@{#346211}
Diffstat (limited to 'cc/test/layer_tree_test.h')
-rw-r--r--cc/test/layer_tree_test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index 9eaa8f4..5a22087 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -61,6 +61,7 @@ class TestHooks : public AnimationDelegate {
virtual void DidFinishImplFrameOnThread(LayerTreeHostImpl* host_impl) {}
virtual void BeginMainFrameAbortedOnThread(LayerTreeHostImpl* host_impl,
CommitEarlyOutReason reason) {}
+ virtual void WillPrepareTiles(LayerTreeHostImpl* host_impl) {}
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) {}
virtual void WillCommitCompleteOnThread(LayerTreeHostImpl* host_impl) {}
virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) {}