Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing macOS 10.6+ IOSurface functions #459

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

xanathar
Copy link
Contributor

This adds a few sys entry points for IOSurface functions.

I also made those public, so that code outside the IOSurface module can call and use them. I didn't add "rusty" wrappers as most of these functions are likely to be used in unsafe contexts anyway.

I limited this to all functions supported in macOS 10.6.

@@ -143,7 +149,7 @@ impl IOSurface {
let error_msg = error_msg.to_string_lossy();
// This will only actually leak memory if error_msg is a `Cow::Owned`, which
// will only happen if the platform gives us invalid unicode.
panic!(error_msg.leak());
panic!("{}", error_msg.leak());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not relevant to the PR itself, but fixes a warning at compile time.

@jrmuizel
Copy link
Collaborator

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit c127f49 has been approved by jrmuizel

bors-servo added a commit that referenced this pull request Aug 12, 2021
Added missing macOS 10.6+ IOSurface functions

This adds a few `sys` entry points for IOSurface functions.

I also made those public, so that code outside the IOSurface module can call and use them. I didn't add "rusty" wrappers as most of these functions are likely to be used in unsafe contexts anyway.

I limited this to all functions supported in macOS 10.6.
@bors-servo
Copy link
Contributor

⌛ Testing commit c127f49 with merge 1177758...

@bors-servo
Copy link
Contributor

💥 Test timed out

@jrmuizel
Copy link
Collaborator

@bors-servo r+

@bors-servo
Copy link
Contributor

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.

@bors-servo
Copy link
Contributor

📌 Commit c127f49 has been approved by jrmuizel

@bors-servo
Copy link
Contributor

⌛ Testing commit c127f49 with merge e231cb7...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: jrmuizel
Pushing e231cb7 to master...

@bors-servo bors-servo merged commit e231cb7 into servo:master Oct 27, 2021
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.

None yet

3 participants