Skip to content

Commit 89e5315

Browse files
committed
Add willReadFrequently: true to Images test
We expect authors to use this path in the wild so we should prefer measuring it.
1 parent 623628c commit 89e5315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MotionMark1.2/tests/master/resources/image-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ var ImageDataStage = Utilities.createSubclass(Stage,
143143
animate: function(timeDelta) {
144144
for (var i = 0; i < this._offsetIndex; ++i) {
145145
var element = this.testElements[i];
146-
var context = element.getContext("2d");
146+
var context = element.getContext("2d", { willReadFrequently: true });
147147

148148
// Get image data
149149
var imageData = context.getImageData(0, 0, this.imageWidth, this.imageHeight);

0 commit comments

Comments
 (0)