{"ScriptPreparationCode":"var img = new Image();\r\nvar canvas = document.createElement(\u0027canvas\u0027);\r\nvar resCanvas = document.createElement(\u0027canvas\u0027);\r\nvar isReady = false;\r\n\r\nvar frameRaw1 = null;\r\n frameRaw1 = canvas.getContext(\u00272d\u0027);\r\nvar frameRaw2 = null;\r\nvar result = null;\r\n result = resCanvas.getContext(\u00272d\u0027);\r\n\r\nimg.addEventListener(\u0027load\u0027, function() {\r\n createImageBitmap(img).then(function(imageBitmap) {\r\n frameRaw2 = imageBitmap;\r\n canvas.width = frameRaw2.width;\r\n canvas.height = frameRaw2.height;\r\n resCanvas.width = frameRaw2.width;\r\n resCanvas.height = frameRaw2.height;\r\n isReady = true;\r\n\t});\r\n});\r\n\r\nimg.src = \u0027https://fastly.picsum.photos/id/159/536/354.jpg?hmac=59u2RZ-L-Vjfrvsa9T21nZU7ylv03-EGGKErZCaf488\u0027;","TestCases":[{"Name":"canvas2d.drawImage(imageElement) ","Code":"frameRaw1.clearRect(0, 0, canvas.width, canvas.height);\r\nframeRaw1.drawImage(img, 0, 0);\r\nresult.drawImage(canvas, 0, 0);","IsDeferred":false},{"Name":"createImageBitmap(imageElement)","Code":"createImageBitmap(img).then(function(r) {\r\n frameRaw2 = imageBitmap;\r\n result.drawImage(frameRaw2, 0, 0);\r\n});","IsDeferred":false}]}