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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-main.html

Issue 2294963002: Submit Compositor Frame from OffscreenCanvas on main (Closed)
Patch Set: Using Ref test fixes layout test problem 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-main.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-main.html b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-main.html
new file mode 100644
index 0000000000000000000000000000000000000000..e4788772905425039aa978f1eca894eeca17eb01
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-main.html
@@ -0,0 +1,15 @@
+<!DOCTYPE>
+<canvas id="canvas2D" width="50" height="50" background-color="red"></canvas>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+}
+
+// Currently, we push a Green color frame from OffscreenCanvas; so we test
+// whether the associated canvas has green pixel. In the future, when we
+// change solidColorFrame to textureFrame, the expected png needs to changed too.
+var canvas2D = document.getElementById("canvas2D");
+var offscreenCanvas = canvas2D.transferControlToOffscreen();
+var offscreen2d = offscreenCanvas.getContext("2d");
+offscreen2d.commit();
+</script>

Powered by Google App Engine
This is Rietveld 408576698