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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/resources/imageBitmap-transferable.js

Issue 1797313002: Make ImageBitmap transferable work with ImageBitmapOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-transferable.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/webgl/resources/imageBitmap-transferable.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/resources/imageBitmap-transferable.js b/third_party/WebKit/LayoutTests/fast/canvas/webgl/resources/imageBitmap-transferable.js
new file mode 100644
index 0000000000000000000000000000000000000000..573d88b53de87b3d5cbc28b0bffe01b60d1a7cc0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/resources/imageBitmap-transferable.js
@@ -0,0 +1,5 @@
+self.onmessage = function(e) {
+ createImageBitmap(e.data, {imageOrientation: "none", premultiplyAlpha: "none"}).then(imageBitmap => {
+ postMessage(imageBitmap, [imageBitmap]);
+ });
+};
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/webgl/tex-image-and-sub-image-2d-image-bitmap-transferable.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698