1. 28 May, 2013 39 commits
  2. 27 May, 2013 1 commit
    • ajuma@chromium.org's avatar
      Allow animations with inactive observers to reach the Starting state · 41512b04
      ajuma@chromium.org authored
      Currently, when a LayerAnimationController only has an observer in the
      pending tree, we early-out from Animate and UpdateState in order to prevent
      animating a layer before it's drawn.
      
      However, this means that the position of a layer can change immediately
      after tree activation (even before a draw), if an animation is started on
      that layer. This means that tile priorities calculated by UpdateTilePriorites
      before tree activation can immediately become stale.
      
      This CL allows animations with only inactive observers to reach the Starting
      state and get ticked at their starting point, but progress no further. This
      means we still won't have running animations on layers before they're drawn.
      However, this change means that if we ensure that animation always happens
      before tree activation in each frame (in a follow-up CL), then the tile
      priorities calculated during tree activation will still be valid when the
      frame is drawn.
      
      BUG=242966
      
      Review URL: https://chromiumcodereview.appspot.com/15732013
      
      git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202473 0039d316-1c4b-4281-b951-d872f2087c98
      41512b04