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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/idleToBlob/OffscreenCanvas-convertToBlob-webgl-worker-expected.html

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: rebase and fix global-interface-listing-service-worker-expected.txt Created 4 years, 2 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/virtual/threaded/fast/idleToBlob/OffscreenCanvas-convertToBlob-webgl-worker-expected.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/idleToBlob/OffscreenCanvas-convertToBlob-webgl-worker-expected.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/idleToBlob/OffscreenCanvas-convertToBlob-webgl-worker-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..61c4f5c4b117d39c33c90763180822cb5107b218
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/idleToBlob/OffscreenCanvas-convertToBlob-webgl-worker-expected.html
@@ -0,0 +1,26 @@
+<img id="png"/>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+
+var pngImage = document.getElementById('png');
+function imageLoaded() {
+ if (window.testRunner) {
+ window.testRunner.notifyDone();
+ }
+}
+pngImage.addEventListener('load', imageLoaded);
+
+var canvas = document.createElement("canvas");
+canvas.width = 50;
+canvas.height = 50;
+var gl = canvas.getContext('webgl');
+gl.clearColor(0, 1, 0, 1);
+gl.clear(gl.COLOR_BUFFER_BIT);
+
+canvas.toBlob(function(blob) {
+ pngImage.src = URL.createObjectURL(blob);
+});
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698