Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Issue 179293004: Drive SVG Animations via requestAnimationFrame (Closed)

Created:
6 years, 9 months ago by fs
Modified:
6 years, 9 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), rwlbuis, dstockwell, Timothy Loh, krit, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, dino_apple.com, Eric Willigers, cbiesinger
Visibility:
Public.

Description

Drive 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -27 lines) Patch
M Source/core/animation/AnimationClock.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/animation/DocumentTimeline.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/PageAnimator.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/svg/SVGDocumentExtensions.h View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/svg/SVGDocumentExtensions.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.h View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.cpp View 1 2 3 12 chunks +68 lines, -18 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 4 chunks +19 lines, -5 lines 0 comments Download
M Source/core/svg/graphics/SVGImageChromeClient.cpp View 1 2 3 3 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
fs
This tries to hook up SVG animations to the rAF "framework". There's a non-pleasant quirk ...
6 years, 9 months ago (2014-02-28 16:58:23 UTC) #1
dstockwell
6 years, 9 months ago (2014-03-01 03:50:12 UTC) #2
pdr.
I really like this. I would prefer if one of the web animations folks would ...
6 years, 9 months ago (2014-03-03 17:47:32 UTC) #3
dstockwell
On 2014/02/28 16:58:23, fs wrote: > There's a non-pleasant quirk wrt to testing (pixel tests) ...
6 years, 9 months ago (2014-03-04 01:19:03 UTC) #4
fs
Thanks for having a look! On 2014/03/03 17:47:32, pdr wrote: > Some minor comments below. ...
6 years, 9 months ago (2014-03-04 10:28:19 UTC) #5
fs
Updated to use an AnimationClock, and use its 'frozen' state instead of making loose such ...
6 years, 9 months ago (2014-03-04 16:22:01 UTC) #6
fs
On 2014/03/04 16:22:01, fs wrote: > animation-currentColor.svg is still failing, but it looks like it's ...
6 years, 9 months ago (2014-03-04 18:16:45 UTC) #7
pdr.
LGTM for core/svg. If you don't mind, please wait for an LGTM from dstockwell.
6 years, 9 months ago (2014-03-04 23:36:48 UTC) #8
fs
On 2014/03/04 23:36:48, pdr wrote: > LGTM for core/svg. > > If you don't mind, ...
6 years, 9 months ago (2014-03-06 09:37:19 UTC) #9
dstockwell
lgtm
6 years, 9 months ago (2014-03-06 11:03:23 UTC) #10
fs
The CQ bit was checked by fs@opera.com
6 years, 9 months ago (2014-03-06 12:09:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/179293004/60001
6 years, 9 months ago (2014-03-06 12:09:31 UTC) #12
commit-bot: I haz the power
Change committed as 168631
6 years, 9 months ago (2014-03-06 12:33:06 UTC) #13
cbiesinger
6 years, 9 months ago (2014-03-06 20:40:53 UTC) #14
Message was sent while issue was closed.
On 2014/03/06 12:33:06, I haz the power (commit-bot) wrote:
> Change committed as 168631

I've reverted this in https://codereview.chromium.org/188903003/ because I
suspect it caused various layout test failures, see the link in that commit
description.

Powered by Google App Engine
This is Rietveld 408576698