cc: Update property trees for animations after commit
commit9db24fb58c1ac07bdd221aebb479e1b404f99241
authorajuma <ajuma@chromium.org>
Mon, 29 Jun 2015 20:15:07 +0000 (29 13:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Jun 2015 20:15:28 +0000 (29 20:15 +0000)
treed16a2808a64b3e2518a134698c44895a2d9cda3f
parent048ad5fdbe76e14368bc4239cd07d49c1edde512
cc: Update property trees for animations after commit

This makes LayerTreeHostAnimationTestNotifyAnimationFinished pass with
property tree verification turned on.

After a commit, if the most recent animation tick times on the main
thread and the compositor thread aren't the same, the just-pushed
property trees will contain values corresponding to the latest main
thread tick rather than the latest compositor thread tick. We were
previously adjusting for this during PushProperties, but
PushProperties can get skipped. This is essentially the same problem
that was already solved for compositor scrolling in
https://codereview.chromium.org/1189893003, by walking the layer tree
after commit and updating scroll offsets stored in the transform
tree. This CL updates property tree nodes for animations during this
walk.

BUG=497806
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1221703002

Cr-Commit-Position: refs/heads/master@{#336627}
cc/layers/layer.cc
cc/layers/layer_impl.cc
cc/layers/layer_impl.h
cc/trees/layer_tree_host.cc
cc/trees/layer_tree_impl.cc
cc/trees/layer_tree_impl.h