feat(libcairo): retain solid and surface source patterns #15681
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15681"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hyvvs on 2026-11-04T04:10:18Z.
What
Implement five formerly throwing guest-callable
libcairosource-pattern exports:cairo_set_source_rgb,cairo_set_source_rgba,cairo_set_source,cairo_set_source_surface, andcairo_pattern_create_for_surface. Adds native-style opaque black default context source, clamped solid RGBA and retained surface patterns, user-space offsets as pattern matrices, saved/restored pattern ownership, and sticky source errors. Supports the existing gradient patterns (from #15208), so a caller can pass linear/radial sources tocairo_set_source. Parent #15317 provides context/state; its image-surface parent supplies surface lifetimes. The branch explicitly merges the two independent open PR heads, so their cumulative exports must not be counted as newly introduced by this PR.Exactly five new callable exports beyond parents #15317 and #15208. No paint, mask, fill, stroke or rasterization is claimed; those stay throwing, and no PS5 console behavior has been verified.
Tested
guest_cairo_graphics_state,guest_cairo_patterns,guest_cairo_source, all pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Pull request closed