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

Unified Diff: third_party/WebKit/PerformanceTests/Canvas/toBlob_duration.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.html
diff --git a/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration.html b/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration.html
index 9be0c9120108a044f761771a1d64401f6e94f5d6..16e7349ab20f5df6039f17eb42939f3bed4ce015 100644
--- a/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration.html
+++ b/third_party/WebKit/PerformanceTests/Canvas/toBlob_duration.html
@@ -39,14 +39,16 @@ function runTest(myCanvas) {
window.onload = function () {
canvas_idle = createCanvas4kBy4k("canvas_idle");
- PerfTestRunner.prepareToMeasureValuesAsync({
+ PerfTestRunner.startMeasureValuesAsync({
unit: 'ms',
done: function () {
isDone = true;
},
- description: "Measures performance of canvas."
+ run: function() {
+ runTest(canvas_idle);
+ },
+ description: "Measures performance of canvas."
});
- runTest(canvas_idle);
};
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698