4 <canvas id=
"canvas" width=
"150" height=
"150"></canvas>
8 var canvas
= document
.getElementById('canvas');
9 var ctx
= canvas
.getContext('2d');
11 ctx
.fillStyle
= '#f00';
12 ctx
.fillRect(0, 0, 150, 150);
20 // The coordinate '149.99999' makes skia use GrConvexPolyEffect to handle the points.
21 // The result should be same as '150'. So this test checks if the GrConvexPolyEffect
23 ctx
.lineTo(149.99999, -1);
28 ctx
.fillStyle
= '#0f0';
29 ctx
.fillRect(0, 0, 150, 150);