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

Unified Diff: content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html

Issue 2359123002: Revert of Update pixel test expectation and add new worker tests (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
diff --git a/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html b/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
deleted file mode 100644
index d4a9ea713d881c86af13fffbb099c1210e6874b8..0000000000000000000000000000000000000000
--- a/content/test/data/gpu/pixel_offscreenCanvas_webgl_commit_worker.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE HTML>
-
-<!-- READ BEFORE UPDATING:
-If this test is updated make sure to increment the "revision" value of the
-associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure
-that the baseline images are regenerated on the next run.
--->
-
-<html>
-<head>
-<title>OffscreenCanvas commit flow on worker thread: red square on white background.</title>
-<style type="text/css">
-.nomargin {
- margin: 0px auto;
-}
-</style>
-<script id="myWorker" type="text/worker">
-self.onmessage = function(e) {
- var transferredOffscreenCanvas = e.data;
- var gl = transferredOffscreenCanvas.getContext("webgl");
- gl.clearColor(1.0, 0.0, 0.0, 1.0);
- gl.clear(gl.COLOR_BUFFER_BIT);
- gl.commit();
-};
-</script>
-<script>
-var g_swapsBeforeAck = 15;
-
-function makeWorker(script) {
- var blob = new Blob([script]);
- return new Worker(URL.createObjectURL(blob));
-}
-
-function main()
-{
- draw();
- waitForFinish();
-}
-
-function draw()
-{
- var canvas = document.getElementById("c");
- var offscreenCanvas = canvas.transferControlToOffscreen();
- var worker = makeWorker(document.getElementById("myWorker").textContent);
- worker.postMessage(offscreenCanvas, [offscreenCanvas]);
-}
-
-function waitForFinish()
-{
- if (g_swapsBeforeAck == 0) {
- domAutomationController.setAutomationId(1);
- domAutomationController.send("SUCCESS");
- } else {
- g_swapsBeforeAck--;
- document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1;
- window.webkitRequestAnimationFrame(waitForFinish);
- }
-}
-</script>
-</head>
-<body onload="main()">
-<div style="position:relative; width:200px; height:200px; background-color:white">
-</div>
-<div id="container" style="position:absolute; top:0px; left:0px">
-<canvas id="c" width="200" height="200" class="nomargin"></canvas>
-</div>
-</body>
-</html>
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698