Hi Brian,
Thank you again for your answer, that's very kind of you :-)
I was afraid that you would tell me that SkARGB32_Blitter is a limited
legacy implementation. Hmm, although it is limited, do you think it
could still be useful to offer some kind of blitter access at the
public API?
From my preliminary understanding of the implementation, it seems like
it is good enough to support "simpler" painting models like HTML5
canvas, postscript, Qt's QPainter or gdiplus. Would SkARGB32_Blitter
work for gradients?
It might be programmatically simpler to render to a supported format
and then copy-convert to the actual output format, but in some use
cases that may actually involve two copies, one to get the current
pixels and convert them to a supported format to have Skia render onto
that, and then convert it back to the output format.
I am curious, how could your idea of allowing custom ColorTypes be
implemented even if only packed pixel formats were supported and we
ignore planar images for now?
Side question: If I wanted to use Skia to draw to a framebuffer, what
is the recommended way to let SkSurface know that each line contains
some padding at the end?
Thank you for your help!
best regards,
Marc
On Fri, 14 Apr 2023 at 22:29, 'Brian Osman' via skia-discuss
> To view this discussion on the web visit
https://groups.google.com/d/msgid/skia-discuss/CAMcBjo49TeW5Ss7kNKiaDT30HskbEa5pWhFkyZx1E-JEVhBfPQ%40mail.gmail.com.