3 ms·
In this context I would bet money that it's an implementation of the Canvas API that uses Skia underneath to do actual rasterization. It turns out (if you do a
by kevingadd 2y ago
In this context I would bet money that it's an implementation of the Canvas API that uses Skia underneath to do actual rasterization. It turns out (if you do a little research) that Firefox and Chrome have at various points in time used Skia as a backend for their own implementations of the Canvas API, too.
- rikroots 2y agoReading the documentation, it seems to implement most (all?) of the Web Canvas API[1], and in certain areas extend the API in some exciting (well, exciting to me[2]) ways. The key point is that this can be used in the backend, far beyond the browser environment? [1] https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API [2] The things that jump out to me as "exciting extensions" beyond the Api include: multiline text and text decoration (underlines!)[3]; perspective effects[4]; and Path2D boolean and filter operations[5]. [3] https://skia-canvas.org/api/context#textdecoration https://skia-canvas.org/api/context#textdecoration [4] - https://skia-canvas.org/api/context#createprojection https://skia-canvas.org/api/context#createprojection [5] - https://skia-canvas.org/api/path2d https://skia-canvas.org/api/path2d
- brabel 2y ago> Firefox and Chrome have at various points in time used Skia as a backend for their own implementations of the Canvas API, too. Skia is the graphics engine used by Chrome and Android to render everything: https://skia.org/ https://skia.org/