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

Side by Side Diff: content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_main.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 function waitForFinish() 48 function waitForFinish()
49 { 49 {
50 if (g_swapsBeforeAck == 0) { 50 if (g_swapsBeforeAck == 0) {
51 domAutomationController.setAutomationId(1); 51 domAutomationController.setAutomationId(1);
52 domAutomationController.send("SUCCESS"); 52 domAutomationController.send("SUCCESS");
53 } else { 53 } else {
54 g_swapsBeforeAck--; 54 g_swapsBeforeAck--;
55 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; 55 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1;
56 window.webkitRequestAnimationFrame(waitForFinish); 56 window.requestAnimationFrame(waitForFinish);
57 } 57 }
58 } 58 }
59 </script> 59 </script>
60 </head> 60 </head>
61 <body onload="main()"> 61 <body onload="main()">
62 <div style="position:relative; width:200px; height:200px; background-color:white "> 62 <div style="position:relative; width:200px; height:200px; background-color:white ">
63 </div> 63 </div>
64 <div id="container" style="position:absolute; top:0px; left:0px"> 64 <div id="container" style="position:absolute; top:0px; left:0px">
65 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> 65 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas>
66 </div> 66 </div>
67 <div id="container" style="position:absolute; top:0px; left:150px"> 67 <div id="container" style="position:absolute; top:0px; left:150px">
68 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> 68 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas>
69 </div> 69 </div>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698