DescriptionDrive SVG Animations via requestAnimationFrame
Start using FrameView::scheduleAnimation instead of a Timer for driving
the animations in a SMILTimeContainer.
The timer however remains to use when the next animation event is further
into the future than within the (~) next frame interval. Hence
SMILTimeContainer::m_timer is renamed to m_wakeupTimer.
The animation time from the compositor is plumbed through the layers, but
is not yet used as the "global" clock. That will have to wait for a later
CL.
For the SVG-in-<img> (and similar) case(s),
SVGImageChromeClient::scheduleAnimation is modified to use a fixed frame
interval.
In SVGImage, the initialization of m_page is moved later, to disable any
methods that depend on accessing the SVG root element (prompted by the
need to query if the image has any animations) until the actual document
is loaded/being loaded.
BUG=231576
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168631
Patch Set 1 #Patch Set 2 : Clock hack. #Patch Set 3 : Rebase. #
Total comments: 15
Patch Set 4 : Use AnimationClock. #
Messages
Total messages: 14 (0 generated)
|