Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html

Issue 2858783003: Refactor prepareToMeasureValuesAsync to startMeasureValuesAsyn which run test through callback (Closed)
Patch Set: Address Xianzhu's review comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html
diff --git a/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html b/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html
index 42376d40e8b7e57aa6b0a7b3ac5d2bdac384bf20..37ed35b90ef0a769568a46464301ba8759f9be4f 100644
--- a/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html
+++ b/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration_jpeg.html
@@ -33,14 +33,16 @@ function runTest(myCanvas) {
window.onload = function () {
canvas_idle = createCanvas4k("canvas_idle");
- PerfTestRunner.prepareToMeasureValuesAsync({
+ PerfTestRunner.startMeasureValuesAsync({
unit: 'ms',
done: function () {
isDone = true;
},
+ run: function() {
+ runTest(canvas_idle);
+ },
description: "Measures performance of canvas."
});
- runTest(canvas_idle);
};
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698