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

Use safe create_surface api #446

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

ratmice
Copy link
Contributor

@ratmice ratmice commented Feb 19, 2024

Here is an attempt at using the safe surface creation API, I only tested that it runs on wayland and compiles on wasm,
but I've never been able to run on WebGPU here (even without the patch), so I can't test that or other platforms.

Feel it is worth marking as draft because I haven't tested other platforms.

@DJMcNab DJMcNab added the help wanted Extra attention is needed label Feb 19, 2024
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

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

Thanks!

@ratmice ratmice marked this pull request as ready for review February 19, 2024 20:04
@ratmice
Copy link
Contributor Author

ratmice commented Feb 19, 2024

I thought to double check that that 'static lifetime was needed, I was previously needing it for the error

Borrowed data escapes outside of closure

But somewhere in all the simplifications, that no longer seems to be a problem. So I've gotten rid of that 'static bound.

Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

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

Thanks for getting this done so quickly!

You're going to need to rebase past #448 , but I don't think there should be any conflicts

@ratmice ratmice force-pushed the safe_create_surface branch from 8741955 to fdc9a98 Compare February 20, 2024 09:44
@ratmice ratmice added this pull request to the merge queue Feb 20, 2024
Merged via the queue into linebender:main with commit eb5255e Feb 20, 2024
8 checks passed
@ratmice ratmice deleted the safe_create_surface branch February 20, 2024 12:19
simbleau pushed a commit that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants