|
|
|
|
|
by cerberusss
2580 days ago
|
|
So if I read this correctly, it's an algorithm that Firefox could use when it handles the HTML canvas tag. For instance to draw SVG or text. Is that correct? And the good thing here, is that it uses GPU instructions to determine occlusion, and thus speed up the drawing process. What I don't get: if that's the case, shouldn't it be integrated at a lower level, i.e. not just for drawing SVG or text, but the whole of the canvas tag? Because that's where occlusion also could take place? |
|
In fact, Pathfinder offers a subset of the HTML canvas API which you can use in your Rust apps right now. Here's an example: https://github.com/pcwalton/pathfinder/blob/master/examples/...