From 89e5315de56cecd7413d2a7e614834ab34288329 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Thu, 15 Jun 2023 14:53:38 -0400 Subject: [PATCH] Add willReadFrequently: true to Images test We expect authors to use this path in the wild so we should prefer measuring it. --- MotionMark1.2/tests/master/resources/image-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotionMark1.2/tests/master/resources/image-data.js b/MotionMark1.2/tests/master/resources/image-data.js index 1940c3a..95a6bb6 100644 --- a/MotionMark1.2/tests/master/resources/image-data.js +++ b/MotionMark1.2/tests/master/resources/image-data.js @@ -143,7 +143,7 @@ var ImageDataStage = Utilities.createSubclass(Stage, animate: function(timeDelta) { for (var i = 0; i < this._offsetIndex; ++i) { var element = this.testElements[i]; - var context = element.getContext("2d"); + var context = element.getContext("2d", { willReadFrequently: true }); // Get image data var imageData = context.getImageData(0, 0, this.imageWidth, this.imageHeight);