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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-ImageBitmap-worker-to-worker-1.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.fillStyle = '#0f0';
5 ctx.fillRect(0, 0, canvas.width, canvas.height);
6 var image = canvas.transferToImageBitmap();
7 self.postMessage(image, [image]);
8 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698