feat(libcairo): construct positive and negative arc paths #15679
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15679"
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-04T03:45:47Z.
What
Implement two previously throwing
libcairoexports,cairo_arcandcairo_arc_negative, with typed guest System V ABI and geometrically correct cubic Bezier path segments. Positive/negative sweeps, wrapping, joins to existing paths, degenerate and negative radii, scaled ellipse output, the default 0.1 tolerance and 24.8 Cairo device quantization are covered. The implementation builds on the quantized path/extents state in #15675. It does not claim rendering or console-verified firmware fidelity; unimplemented paint/fill/stroke remain throwing. This adds two genuinely callable exports atop #15675, not the cumulative stacked total.Tested
guest_cairo_arcpass. Twelve checked-in path fixtures verify exact 24.8 Cairo commands/points, including quarter, half and full circles, clockwise/counterclockwise arcs, wrapped angles, zero and negative radius, NaN, scaled ellipse and anisotropic matrix cases.git diff upstream/main...HEAD --check, merge-tree and strict conventions verified locally before publishing. This branch adds 2 callable exports and removes 2 throwing placeholders.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