Align the timers for throttled rAF to reduce power usage
Created attachment 306553 [details] Patch
Comment on attachment 306553 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=306553&action=review r=me > Source/WebCore/dom/ScriptedAnimationController.cpp:313 > + Seconds alignment = (fireTime + alignmentInterval / 2).secondsSinceEpoch() % alignmentInterval; MonotonicTime has % operator, so I don't think we need .secondsSinceEpoch(), do we?
rdar://problem/31490620
This landed in r215153, but I guess you forgot to close the bug. This broke RAF animations in GTK+ port, there must be something wrong in the aligned fire time calculation, because we are getting negative delays.
Ah, wait, I think the problem is that in mac port, the timer is only used when throttling. Anyway, I'll close this bug and open a new one.
Comment on attachment 306553 [details] Patch Committed r215153: <http://trac.webkit.org/changeset/215153>