3 ms·
What is "Canvas interface" referring to here? I thought it was about the browser Canvas API but I see nothing pointing toward that.
by Kiro 6y ago
What is "Canvas interface" referring to here? I thought it was about the browser Canvas API but I see nothing pointing toward that.
- unwind 6y agoIt seems to refer to the "rendering backend" used to paint user interfaces, as in actual/native elements. The PDF linked to by @DuncanMak compares it performance-wise to things like Cairo (the canvas library used by GTK+), Qt Raster, and SKIA GL). It seems to perform very well in comparison.
- dsego 6y agoAfaik a canvas interface is where you draw to a bitmap by issuing calls in a procedural style (eg web canvas, cairo graphics etc). This is in contrast to vector graphics where you build an object hierarchy to be rendered.
- PaulDavisThe1st 6y agoThat's almost backwards from my understanding of those terms, but oh well ....
- dsego 6y agoSure, can you share your understanding?
- PaulDavisThe1st 6y agoVector graphics: drawing stuff by issuing commands to render specific simple geometric elements (lines, rects, triangles, circles) Canvas: a context in which to place "objects" in 3 dimensions (x, y and z), and have them appropriately re-rendered when necessary (motion, object addition/removal)
- kllrnohj 6y agoThe general 2D drawing API you'll find basically everywhere. So eg Skia's SkCanvas, QT's QPainter, Cairo's whatever, HTML5's <canvas>, etc... The basic 2D drawing "thing" (drawGlyphs, drawRect, drawImage, etc...) It's referring to that broad concept, not a specific Canvas interface.