Skip to content

[quartz] Cleanup and make better use of cairo_quartz_image_surface_t.

John Ralls requested to merge jralls/cairo:quartz-image-surface into master

Use a CGBitmapContext mapping the underlying image surface's data instead of maintaining a CGImage. Generalize the quartz surface snapshot mechanism to work with both cairo_quartz_surface_t and cairo_quartz_image_surface_t and to use the latter to get a CGContext around non-quartz surfaces. Use this snapshot machanism to get a CGImageRef when needed from a cairo_quartz_image_surface_t.

Merge request reports