W3C home > Mailing lists > Public > public-web-perf@w3.org > May 2012

Re: Semantics of the time argument on rAF's FrameRequestCallback

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 09 May 2012 13:07:06 -0400
Message-ID: <4FAAA43A.9050702@mit.edu>
To: public-web-perf@w3.org
On 5/9/12 12:58 PM, Nat Duca wrote:
> Hi folks -
>
> The current rAF spec defines FrameRequestCallback in the following way:
>
>     callback FrameRequestCallback = void (DOMTimeStamp time);
>
> However, we don't define the semantic meaning of the time argument.

See section 5 step 1:

   1. Let t be the result of getting the next sample time of the
      top-level browsing context.

     Editorial note

     ISSUE-2 Getting the next sample time is currently undefined.
     This time should be the same as the time that contemporaneous
     native animations have been sampled at.

Note that the above definition, if adopted, would allow either of your 
two options to be conformant; the key is that it match all other 
animations so that the timeline is consistent.

-Boris
Received on Wednesday, 9 May 2012 17:07:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC