WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
23467
Optimize styleAvailable logic in AnimationController
https://bugs.webkit.org/show_bug.cgi?id=23467
Summary
Optimize styleAvailable logic in AnimationController
Chris Marrin
Reported
2009-01-21 16:30:28 PST
One of my tasks is to synchronize animations. To do this I will need to build a linked list of currently running animations so I can change them all at once at certain times. This got me to thinking about how the styleAvailable logic has these same characteristics (they need to get marked as waiting for something, and when that thing happens they all have to be notified at the same time). And I realized that keeping them in a list would be an optimization from having to walk through all CompositeAnimations looking for them. So I'm making this change now, both for the optimization and so I can do the same thing for the sync logic.
Attachments
Patch
(19.13 KB, patch)
2009-01-22 09:15 PST
,
Chris Marrin
hyatt
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Marrin
Comment 1
2009-01-22 09:15:09 PST
Created
attachment 26926
[details]
Patch Change styleAvailable functionality to be a linked list rather than scanning every CompositeAnimation for Animations that are waiting for styleAvailable. This has potential for large performance improvement in cases where there are many animations firing at once. But it will also help in my next fix, which is to synchronize software and accelerated animations. I also changed slightly when the beginAnimationUpdate and endAnimationUpdate calls are made. But this has no real effect on performance or behavior.
Dave Hyatt
Comment 2
2009-01-23 11:07:02 PST
Comment on
attachment 26926
[details]
Patch r=me
Chris Marrin
Comment 3
2009-01-24 07:10:48 PST
Sending WebCore/ChangeLog Sending WebCore/dom/Document.cpp Sending WebCore/page/animation/AnimationBase.cpp Sending WebCore/page/animation/AnimationBase.h Sending WebCore/page/animation/AnimationController.cpp Sending WebCore/page/animation/AnimationController.h Sending WebCore/page/animation/CompositeAnimation.cpp Sending WebCore/page/animation/CompositeAnimation.h Transmitting file data ........ Committed revision 40215.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug