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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-ImageBitmap-worker-to-worker-2.js

Issue 2300633004: Allow canvases to be GPU-accelerated in Workers (Closed)
Patch Set: test expectation Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 self.onmessage = function(msg) {
2 var canvas = new OffscreenCanvas(10, 10);
3 var ctx = canvas.getContext('2d');
4 ctx.drawImage(msg.data, 0, 0);
5 var image = canvas.transferToImageBitmap();
6 self.postMessage(image, [image]);
7 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698