Introduce NeedsCommit dirty flag scoped for AnimationHost.
If no commit/PushProperties needed, just return.
In that case, OnAnimationWaitingForDeletion notification in element animations should invalidate that flag among many other invalidations.
Note that in old animation system we had no Layer::SetNeedsCommit call:
void Layer::OnAnimationWaitingForDeletion() {
// Animations are only deleted during PushProperties.
SetNeedsPushProperties();
}
void LayerImpl::OnAnimationWaitingForDeletion() {}
Comment 1 by loyso@chromium.org
, Aug 22 2016