Cairo context should provide cairo_set_target
Submitted by Timothy Pearson
Assigned to Chris Wilson @ickle
Description
The cairo context cairo_t should provide a method to set the current target surface if the new target surface is compatible with the original target surface.
This new method would speed up drawing operations in a library I am working on; currently there is no way to either 1.) Change the cairo context target surface while keeping the state stack intact -OR- 2.) Retrieve current or saved painter states and transfer them to a new context
I do not want to keep track of the various painter states inside my library due to the additional complexity and subsequent maintenance concerns. As a result, I am essentially forced to draw onto an intermediate target surface, then paint the contents of that surface onto multiple target surfaces via slow compositing operations.
Version: 1.12.8