feat(libcairo): implement nineteen image and surface exports #14327
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14327"
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-01T09:23:50Z.
What
Implement 19 previously throwing libcairo exports with typed guest SysV declarations and real in-process image storage, including:
Image surfaces have Cairo-compatible formats, dimensions, zero-initialized owned data, borrowed caller-owned pixel buffers, surface lifetime/reference tracking, error statuses, and sub-surface references. The CPU memory backend has no deferred device cache; flush/mark_dirty are synchronous no-ops in that specific backend, not substitutes for unimplemented drawing operations.
Measured: upstream base
26fa1212b88,981 / 34,237 -> branch 9,000 / 34,237 (+19 genuine implemented exports; libcairo 0/161 -> 19/161). This PR is independent of matrix PR #14258. No overlap found with other open Cairo implementation PRs during development.Coordinated landing order: #14258 (matrix) -> #14327 (image surfaces) -> #14328 (font options) -> #14329 (regions). Symbol implementations are disjoint but the PRs share Cairo export inventory, CMake, and technical-debt files. Each later PR will integrate earlier merged changes before landing; standalone branches are not yet a single integrated Cairo build.
Tested
-fsanitize=address,undefined, leak checks,-Wall -Wextra -Werror: passed.python tools/tests/test_progress.py: 57 passed.python core/libs/tests/test_public_headers.py --audit-only: passed.python tools/check_conventions.py --base upstream/main: passed.git diff --cached --check: passed.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 repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T09:48:55Z.
Review: COMMENTED
Checked — libcairo heads conflict pairwise, no landing order declared
#14327, #14328 and #14329 each change
libcairo/Export.cpp,InventoryExports.hppanddocs/dev/debt/libcairo.md, every pair of them conflicts when merged, and all three declareDepends on: none.What I ran
Exact heads: #14327
a590a7178814, #14328e207dcbf4e14, #14329823af579d6e0, and the older open #14258a855b5a98105. Merge previews were run withgit merge-treebetween each pair of heads (git takes the merge base). The conflicted-file lists are below.No precheck, build, or test was run on these heads in this pass. The code in the three PRs was not reviewed line by line, so this comment is about landing order, not implementation quality.
Results
libcairo/Export.cpp,libcairo/include/InventoryExports.hpp,docs/dev/debt/libcairo.mdlibcairo/CMakeLists.txt,libcairo/Export.cpp,libcairo/include/InventoryExports.hpp,docs/dev/debt/libcairo.mdlibcairo/Export.cpp,libcairo/include/InventoryExports.hpp,docs/dev/debt/libcairo.mdlibcairo/CMakeLists.txt,libcairo/Export.cpp,libcairo/include/InventoryExports.hpp,docs/dev/debt/libcairo.mddocs/dev/debt/libcairo.mdlibcairo/CMakeLists.txt,libcairo/Export.cpp,libcairo/include/InventoryExports.hpp,libcairo/libcairo.hpp,docs/dev/debt/libcairo.mdUnedited merge-tree output
Findings
Blocking: none found in this pass.
Non-blocking, needs a decision from the author:
Depends onon each PR (for example, "#14327 lands first; this PR rebases after it"). Today every PR saysDepends on: none, which does not match the conflicts.mainand its head, most of them main changes it does not contain. It conflicts with #14329 and #14327 as well. ItsDepends onand landing position should be stated with the other three.Sources
- [x] Depends on: none).Not verified
To get this to a good state
Declare a landing order for #14327, #14328, #14329 and #14258 in each
Depends onfield, and rebase the later PRs after the earlier ones merge. Re-check the merge previews on the final heads once the order is set.