D | canvas_perf.js | 7 function randomColorTwo(CanvasKit, i, j) { argument 11 return CanvasKit.Color4f(...c); 14 function randomColor(CanvasKit) { argument 15 return CanvasKit.Color4f(Math.random(), Math.random(), Math.random(), Math.random()); 18 function starPath(CanvasKit, X=128, Y=128, R=116) { argument 19 const p = new CanvasKit.Path(); 31 setup: function(CanvasKit, ctx) { argument 34 test: function(CanvasKit, ctx) { argument 40 ctx.canvas.clipRect(CanvasKit.LTRBRect(x, y, x+50, y+50), 41 CanvasKit.ClipOp.Intersect, false); [all …]
|