Callback based pixel backend
Submitted by Simon Budig
Assigned to Carl Worth @cworth
Description
For Gimp we still use libart for certain operations and we would appreciate it, if we could replace it with Cairo at some point. We still miss functionality though:
Libart provides art_svp_render_aa(), which provides a callback based way to get calculated pixel values (fixed point values), but leaves it up to the callback to actually put these pixels in e.g. a bitmap.
This enables us to composite the drawing on existing pixel data and removing unwanted antialiasing as well as using our own data structures for the pixels.
For cairo this probably could be implemented as a specific backend, which does all the rendering-to-pixels-math, but instead of storing these into a bitmap and handing the bitmap to the application would just invoke callbacks specified by the application.
Version: 1.4.6