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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html

Issue 2464093002: Revert of Consolidate implementation of ImageBitmapRenderingContext (Closed)
Patch Set: Created 4 years, 1 month 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/offscreenCanvas-transferToImageBitmap-texImage2D.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html b/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
index 277360f4d1be88ace8e3e0f6ad2f8eb8ce997c63..5d0876b67707bb353dd3ef11dc15fe0e67753f02 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/webgl/offscreenCanvas-transferToImageBitmap-texImage2D.html
@@ -29,6 +29,11 @@
var blob = new Blob([document.getElementById('myWorker').textContent]);
var worker = new Worker(URL.createObjectURL(blob));
var bitmap;
+
+var canvas = document.createElement("canvas");
+canvas.width = 128;
+canvas.height = 128;
+var ctx = canvas.getContext('bitmaprenderer');
var width = 32;
var height = 32;
@@ -83,6 +88,7 @@
worker.onmessage = function(msg) {
bitmap = msg.data.bitmap;
+ ctx.transferFromImageBitmap(bitmap);
var program = tiu.setupTexturedQuad(gl, internalFormat);
runTestOnBindingTarget(gl.TEXTURE_2D, program, bitmap);
testPassed("This test passed");

Powered by Google App Engine
This is Rietveld 408576698