diff options
author | xidachen <xidachen@chromium.org> | 2016-01-23 15:27:32 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-23 23:28:27 +0000 |
commit | 5d34a13da920a09a36b94127cac1872384b34df6 (patch) | |
tree | 006bec02d344c9bd749f84b345af456cb35aaaa4 /third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt | |
parent | e496c18243b150962bd7c9c707126da555a8b2b0 (diff) | |
download | chromium_src-5d34a13da920a09a36b94127cac1872384b34df6.zip chromium_src-5d34a13da920a09a36b94127cac1872384b34df6.tar.gz chromium_src-5d34a13da920a09a36b94127cac1872384b34df6.tar.bz2 |
Make ImageBitmap support structured clone
ImageBitmap is already transferable, but at this moment we cannot use
postMessage(ImageBitmap) via structured clone. This CL will enable it.
This CL also includes a layout test and sends an ImageBitmap to a
worker, the worker sends the ImageBitmap back to main, and does check
that the underline pixel data survives the round trip.
BUG=579539
Review URL: https://codereview.chromium.org/1616213003
Cr-Commit-Position: refs/heads/master@{#371155}
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt new file mode 100644 index 0000000..683319c --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-structured-clone-expected.txt @@ -0,0 +1,49 @@ +Tests that ImageBitmap supports structured clone and that the pixel data survives the trip between main <--> worker + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS bitmapWidth is imageWidth1 +PASS bitmapHeight is imageHeight1 +PASS bitmapWidth is imageWidth1 +PASS bitmapHeight is imageHeight1 +PASS bitmapWidth is imageWidth1 +PASS bitmapHeight is imageHeight1 +PASS newImage.data[0] is within 5 of image1.data[0] +PASS newImage.data[1] is within 5 of image1.data[1] +PASS newImage.data[2] is within 5 of image1.data[2] +PASS newImage.data[3] is image1.data[3] +PASS newImage.data[4] is within 5 of image1.data[4] +PASS newImage.data[5] is within 5 of image1.data[5] +PASS newImage.data[6] is within 5 of image1.data[6] +PASS newImage.data[7] is image1.data[7] +PASS newImage.data[8] is within 5 of image1.data[8] +PASS newImage.data[9] is within 5 of image1.data[9] +PASS newImage.data[10] is within 5 of image1.data[10] +PASS newImage.data[11] is image1.data[11] +PASS newImage.data[12] is within 5 of image1.data[12] +PASS newImage.data[13] is within 5 of image1.data[13] +PASS newImage.data[14] is within 5 of image1.data[14] +PASS newImage.data[15] is image1.data[15] +PASS newImage.data[16] is within 5 of image1.data[16] +PASS newImage.data[17] is within 5 of image1.data[17] +PASS newImage.data[18] is within 5 of image1.data[18] +PASS newImage.data[19] is image1.data[19] +PASS newImage.data[20] is within 5 of image1.data[20] +PASS newImage.data[21] is within 5 of image1.data[21] +PASS newImage.data[22] is within 5 of image1.data[22] +PASS newImage.data[23] is image1.data[23] +PASS bitmapWidth is imageWidth2 +PASS bitmapHeight is imageHeight2 +PASS bitmapWidth is imageWidth2 +PASS bitmapHeight is imageHeight2 +PASS bitmapWidth is imageWidth2 +PASS bitmapHeight is imageHeight2 +PASS newImage.data[0] is within 5 of image2.data[0] +PASS newImage.data[1] is within 5 of image2.data[1] +PASS newImage.data[2] is within 5 of image2.data[2] +PASS newImage.data[3] is image2.data[3] +PASS successfullyParsed is true + +TEST COMPLETE + |