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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/color-space/display_linear-rgb.html

Issue 2708403003: Implement canvas color space IDL format for 2D canvas (Closed)
Patch Set: Addressing GPU pixel test failures Created 3 years, 10 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 <script> 4 <script>
5 function main() 5 function main()
6 { 6 {
7 var ctx = document.getElementById("c").getContext("2d", {colorSpace:'linear-rg b'}); 7 var ctx = document.getElementById("c").getContext('2d', {colorSpace: 'srgb', p ixelFormat: 'float16'})
8 ctx.fillStyle = 'red'; 8 ctx.fillStyle = 'red';
9 ctx.fillRect(20,20,50,50); 9 ctx.fillRect(20,20,50,50);
10 ctx.fillStyle = 'green'; 10 ctx.fillStyle = 'green';
11 ctx.fillRect(70,20,50,50); 11 ctx.fillRect(70,20,50,50);
12 ctx.fillStyle = 'blue'; 12 ctx.fillStyle = 'blue';
13 ctx.fillRect(20,70,50,50); 13 ctx.fillRect(20,70,50,50);
14 ctx.fillStyle = 'black'; 14 ctx.fillStyle = 'black';
15 ctx.fillRect(70,70,50,50); 15 ctx.fillRect(70,70,50,50);
16 } 16 }
17 </script> 17 </script>
18 </head> 18 </head>
19 <body onload="main()"> 19 <body onload="main()">
20 <canvas id="c" width="140" height="140" class="nomargin"></canvas> 20 <canvas id="c" width="140" height="140" class="nomargin"></canvas>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698