4 ms·
Yes, it would make sense to use Pathfinder for canvas as well. Some care is necessary to avoid regressing apps that read canvas data back from GPU to CPU freque
by pcwalton 7y ago
Yes, it would make sense to use Pathfinder for canvas as well. Some care is necessary to avoid regressing apps that read canvas data back from GPU to CPU frequently, to avoid thrashing the I/O bus, but in general it should be doable.
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/canvas_minimal/src/main.rs https://github.com/pcwalton/pathfinder/blob/master/examples/...