summaryrefslogtreecommitdiffstats
path: root/cc/animation/animation_host.cc
diff options
context:
space:
mode:
authorloyso <loyso@chromium.org>2015-10-21 07:26:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-21 14:27:15 +0000
commitd02fc478259f5a1e3208d4c26ef8f3b1f2681499 (patch)
treead3a0bcafb5162b34b03c9fc7d49e50d5d3b6c81 /cc/animation/animation_host.cc
parentc4d308770e2b7bb891da5251992f9cdfc762b6a2 (diff)
downloadchromium_src-d02fc478259f5a1e3208d4c26ef8f3b1f2681499.zip
chromium_src-d02fc478259f5a1e3208d4c26ef8f3b1f2681499.tar.gz
chromium_src-d02fc478259f5a1e3208d4c26ef8f3b1f2681499.tar.bz2
CC Animations: Fix AnimationHost mode integration with Property Trees.
Fix the test: content_shell --run-layout-test --enable-threaded-compositing transitions/3d/interrupted-transition.html 1) Invalidate property trees in AnimationPlayer::SetNeedsCommit (as in Layer::SetNeedsCommit). 2) We simply destroy AnimationPlayers on interruptions. We destroy Layer Animation Controller if no AnimationPlayers for this layer (despite animations it may be running). So let's clear is_animated flags in property trees on LAC destruction. BUG=545332 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1413003002 Cr-Commit-Position: refs/heads/master@{#355288}
Diffstat (limited to 'cc/animation/animation_host.cc')
-rw-r--r--cc/animation/animation_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/animation/animation_host.cc b/cc/animation/animation_host.cc
index a9515be2..5d8352f 100644
--- a/cc/animation/animation_host.cc
+++ b/cc/animation/animation_host.cc
@@ -244,6 +244,11 @@ void AnimationHost::SetNeedsCommit() {
mutator_host_client_->SetMutatorsNeedCommit();
}
+void AnimationHost::SetNeedsRebuildPropertyTrees() {
+ DCHECK(mutator_host_client_);
+ mutator_host_client_->SetMutatorsNeedRebuildPropertyTrees();
+}
+
void AnimationHost::PushPropertiesTo(AnimationHost* host_impl) {
PushTimelinesToImplThread(host_impl);
RemoveTimelinesFromImplThread(host_impl);