Add new timestamp option
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Jun 2016 03:26:24 +0000 (03:26 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Jun 2016 03:26:24 +0000 (03:26 +0000)
commit249e9c3ac4ef1aee98b176149604dcaba99f66df
tree9decbf2a96cbdc0d851d431670828997fc1c3206
parentcc733067e8c1a037a03b92a125ebc0b02c9a1b57
Add new timestamp option
https://bugs.webkit.org/show_bug.cgi?id=159006

Reviewed by Dean Jackson.

Add a new option to take timestamps from the rAF callback.

* Animometer/developer.html: Added option.
* Animometer/tests/resources/main.js:
(Benchmark): Fall back to using the rAF timestamp if performance.now()
is not available.
(Benchmark._animateLoop): Update how timestamp is set. Prefer to use
local var instead of accessing private var.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/developer.html
PerformanceTests/Animometer/tests/resources/main.js
PerformanceTests/ChangeLog