Refactor/rewrite scroll.js.
The file has been rewritten to conform to Google's JavaScript style, moving all of the __private_variables into a class. Results are now reported as a list of renderingStats objects. If gpuBenchmarking is unavailable, it falls back to measuring frame times using RAF and populating some of the renderingStats fields. The way the test is called has changed. Previously, you would call __scroll_test(), wait for __scrolling_complete, then read __frame_times. Now you call new ScrollTest(callback), which takes a callback as a parameter, and calls that with the results list when the test is finished. This simplifies the way it is called in perf.py. gpu_benchmarking_extension.cc no longer checks if the fields are nonzero. This was a problem when the droppedFrameCount really was 0, but it wouldn't populate that field as it should. BUG=137789, 141477 TEST=This is a test. Review URL: https://chromiumcodereview.appspot.com/10836202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152041 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment