Skip to content

fix(path): expose ORBPath.Callbacks.cgPath as pointer - #43

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/path_shape
Nov 21, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
feature/path_shape

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 21, 2026

Copy link
Copy Markdown
Member

Update ORBPath.Callbacks.cgPath to return UnsafePointer<ORBPath.Callbacks> across the native C/C++ and portable Swift backends:

  • Mark ORBPathCGPathCallbacks with ORB_REFINED_FOR_SWIFT and add _ORBPathCallbacksGetCGPath (ORB_SWIFT_NAME(getter:ORBPathCallbacks.cgPath())) in ORBPathCallbacks.h (plus shim mapping in OpenRenderBoxShims.h).
  • Return _orbCGPathCallbacks directly from ORBPath.Callbacks.cgPath in ORBPathCallbacks.swift, and update PathCallbacksTests.
  • Update DarwinPrivateFrameworks to 211a9a3d in Package.resolved.

Dependency

Refine ORBPathCGPathCallbacks for Swift and expose ORBPath.Callbacks.cgPath as UnsafePointer<ORBPath.Callbacks> across native C/C++ and portable Swift backends.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T19:10:17.372169Z 0a3d71b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a3d71bd92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

#define ORBPathContainsPoints RBPathContainsPoints

#define ORBPathCGPathCallbacks RBPathCGPathCallbacks
#define _ORBPathCallbacksGetCGPath _RBPathCallbacksGetCGPath

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the required ORB_ prefix for the new preprocessor macro

The new _ORBPathCallbacksGetCGPath macro violates the root AGENTS.md requirement that C/C++ preprocessor definitions use the ORB_ prefix. Rename the macro to use that prefix and update the corresponding helper name consistently.

AGENTS.md reference: AGENTS.md:L5-L5

Useful? React with 👍 / 👎.

@codecov-commenter

codecov-commenter commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.13%. Comparing base (3c97339) to head (0a3d71b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenRenderBox/Path/ORBPathCallbacks.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   64.08%   64.13%   +0.04%     
==========================================
  Files          17       17              
  Lines        2066     2066              
==========================================
+ Hits         1324     1325       +1     
+ Misses        742      741       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit f0c4861 into main Nov 21, 2026
4 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/path_shape branch November 21, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants