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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/borders/border-radius-mask-canvas.html

Issue 2192493003: Enable GPU acceleration in 2D OffscreenCanvases on main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dev tools failure Created 4 years, 4 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 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 canvas { 5 canvas {
6 background-color: gray; 6 background-color: gray;
7 border-radius: 200px 0px 200px 0px; 7 border-radius: 200px 0px 200px 0px;
8 } 8 }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 <h3>It passes if:</h3> 12 <h3>It passes if:</h3>
13 <ul> 13 <ul>
14 <li>the canvas content has rounded corners (top-left and bottom-right)</li > 14 <li>the canvas content has rounded corners (top-left and bottom-right)</li >
15 <li>gray background is not visible</li> 15 <li>gray background is not visible</li>
16 </ul> 16 </ul>
17 <canvas id="theCanvas" width="257" height="257"></canvas> 17 <canvas id="theCanvas" width="257" height="257"></canvas>
18 <script> 18 <script>
19 if (window.internals) { 19 if (window.internals) {
20 internals.settings.setAccelerated2dCanvasEnabled(true); 20 internals.runtimeFlags.accelerated2dCanvasEnabled = true;
21 } 21 }
22 var context = theCanvas.getContext('2d'); 22 var context = theCanvas.getContext('2d');
23 context.fillStyle = 'green'; 23 context.fillStyle = 'green';
24 context.fillRect(0, 0, theCanvas.width, theCanvas.width); 24 context.fillRect(0, 0, theCanvas.width, theCanvas.width);
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698