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

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: rebase 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
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]);
+ });
+};

Powered by Google App Engine
This is Rietveld 408576698