| OLD | NEW |
| 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/page_sets/pixel_tests.py. This will ensure | 5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure |
| 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> |
| 11 <title>Canvas 2D Test: Red Box over Black Background</title> | 11 <title>Accelerated Canvas 2D Test: Red Box over Black Background</title> |
| 12 <style type="text/css"> | 12 <style type="text/css"> |
| 13 .nomargin { | 13 .nomargin { |
| 14 margin: 0px auto; | 14 margin: 0px auto; |
| 15 } | 15 } |
| 16 </style> | 16 </style> |
| 17 <script> | 17 <script> |
| 18 var g_swapsBeforeAck = 15; | 18 var g_swapsBeforeAck = 15; |
| 19 | 19 |
| 20 function main() | 20 function main() |
| 21 { | 21 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 domAutomationController.send("SUCCESS"); | 39 domAutomationController.send("SUCCESS"); |
| 40 } else { | 40 } else { |
| 41 g_swapsBeforeAck--; | 41 g_swapsBeforeAck--; |
| 42 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 42 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
| 43 window.webkitRequestAnimationFrame(waitForFinish); | 43 window.webkitRequestAnimationFrame(waitForFinish); |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 </script> | 46 </script> |
| 47 </head> | 47 </head> |
| 48 <body onload="main()"> | 48 <body onload="main()"> |
| 49 <div style="position:relative; width:200px; height:200px; background-color:black
"> | 49 <div style="position:relative; width:300px; height:300px; background-color:black
"> |
| 50 </div> | 50 </div> |
| 51 <div id="container" style="position:absolute; top:0px; left:0px"> | 51 <div id="container" style="position:absolute; top:0px; left:0px"> |
| 52 <canvas id="c" width="200" height="200" class="nomargin"></canvas> | 52 <!-- |
| 53 Canvas acceleration requires that the canvas be at least 256x257. |
| 54 --> |
| 55 <canvas id="c" width="300" height="300" class="nomargin"></canvas> |
| 53 </div> | 56 </div> |
| 54 </body> | 57 </body> |
| 55 </html> | 58 </html> |
| OLD | NEW |