DescriptionCalculate animation_floor_time_ only when actually updating animations
This ensures that imperative animations still hit the target framerate if
we can render fast enough regardless of when in the animation loop the page
calls webkitRequestAnimationFrame().
BUG=71379
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73717
Patch Set 1 #Patch Set 2 : improved scheduling #Patch Set 3 : rely only on timer to avoid multiple callbacks per paint #
Total comments: 1
Patch Set 4 : add bool to track if we've called animate() and are waiting for a paint to happen #
Total comments: 5
Patch Set 5 : hopefully clearer #Patch Set 6 : add a NULL check for webwidget_ (thanks to apatrick) #Messages
Total messages: 7 (0 generated)
|