[webkit-reviews] review granted: [Bug 170630] Align the timers for throttled rAF to reduce power usage : [Attachment 306553] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 8 16:04:43 PDT 2017


Chris Dumez <cdumez at apple.com> has granted Simon Fraser (smfr)
<simon.fraser at apple.com>'s request for review:
Bug 170630: Align the timers for throttled rAF to reduce power usage
https://bugs.webkit.org/show_bug.cgi?id=170630

Attachment 306553: Patch

https://bugs.webkit.org/attachment.cgi?id=306553&action=review




--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
Comment on attachment 306553
  --> https://bugs.webkit.org/attachment.cgi?id=306553
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?


More information about the webkit-reviews mailing list