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

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

Issue 1752083003: mac: Use IOSurfaces in Canvas2DLayerBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp36_canvas2d_refactor
Patch Set: Rebase. Group macros. Created 4 years, 9 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/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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698