Update canvas size when benchmark begins
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Jun 2016 03:26:57 +0000 (03:26 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Jun 2016 03:26:57 +0000 (03:26 +0000)
commit1113bf296adc0cd1e7b69c2e836ce0a52956cdcc
treefea215ff370066d7176acfd5d156b82ebdb1345d
parent249e9c3ac4ef1aee98b176149604dcaba99f66df
Update canvas size when benchmark begins
https://bugs.webkit.org/show_bug.cgi?id=159010

Reviewed by Dean Jackson.

Previously we would evaluate the media queries and assign the canvas size to the test
on body.onload. Instead, do it once the user starts the benchmark.

* Animometer/resources/debug-runner/animometer.js: Move benchmarkController.determineCanvasSize()
to benchmarkController._startBenchmark.
* Animometer/resources/runner/animometer.js: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
PerformanceTests/Animometer/resources/debug-runner/animometer.js
PerformanceTests/Animometer/resources/runner/animometer.js
PerformanceTests/ChangeLog