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

Side by Side Diff: content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_worker.html

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)
Patch Set: rebase Created 3 years, 11 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 2
3 <!-- READ BEFORE UPDATING: 3 <!-- READ BEFORE UPDATING:
4 If this test is updated make sure to increment the "revision" value of the 4 If this test is updated make sure to increment the "revision" value of the
5 associated test in content/test/gpu/gpu_tests/pixel_test_pages.py. This will ens ure 5 associated test in content/test/gpu/gpu_tests/pixel_test_pages.py. This will ens ure
6 that the baseline images are regenerated on the next run. 6 that the baseline images are regenerated on the next run.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 function waitForFinish() 67 function waitForFinish()
68 { 68 {
69 if (g_swapsBeforeAck == 0) { 69 if (g_swapsBeforeAck == 0) {
70 domAutomationController.setAutomationId(1); 70 domAutomationController.setAutomationId(1);
71 domAutomationController.send("SUCCESS"); 71 domAutomationController.send("SUCCESS");
72 } else { 72 } else {
73 g_swapsBeforeAck--; 73 g_swapsBeforeAck--;
74 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; 74 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1;
75 window.webkitRequestAnimationFrame(waitForFinish); 75 window.requestAnimationFrame(waitForFinish);
76 } 76 }
77 } 77 }
78 </script> 78 </script>
79 </head> 79 </head>
80 <body onload="main()"> 80 <body onload="main()">
81 <div style="position:relative; width:200px; height:200px; background-color:white "> 81 <div style="position:relative; width:200px; height:200px; background-color:white ">
82 </div> 82 </div>
83 <div id="container" style="position:absolute; top:0px; left:0px"> 83 <div id="container" style="position:absolute; top:0px; left:0px">
84 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> 84 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas>
85 </div> 85 </div>
86 <div id="container" style="position:absolute; top:0px; left:150px"> 86 <div id="container" style="position:absolute; top:0px; left:150px">
87 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> 87 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas>
88 </div> 88 </div>
89 </body> 89 </body>
90 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698