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

Remove the winit feature #271

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Remove the winit feature #271

merged 1 commit into from
Jan 26, 2024

Conversation

mrobinson
Copy link
Member

@mrobinson mrobinson commented Jan 25, 2024

Now that we can use raw_window_handle, drop the winit feature. This should make the dependency graph a little bit less complicated for crates that depend on surfman.

A few changes:

  • The Wayland implementation needs the size when creating a native widget from a raw window handle, so add that parameters Unfortunately, it doesn't look like there is another option here.
  • Rename create_native_widget_from_rwh to create_native_widget_from_raw_window_handle. There already exists API that uses the raw_window_handle terminology.
  • Try to fix the build of the android-example, which depended on the old winit and now depends on the new one.

This is a breaking API change, so the next release should be a major version bump.

Now that we can use raw_window_handle, drop the winit feature. This
should make the dependency graph a little bit less complicated for
crates that depend on surfman.

A few changes:

 - The Wayland implementation needs the size when creating a native
   widget from a raw window handle, so add that parameters
   Unfortunately, it doesn't look like there is another option here.
 - Rename create_native_widget_from_rwh to
   create_native_widget_from_raw_window_handle. There already exists
   API that uses the `raw_window_handle` terminology.
 - Try to fix the build of the android-example, which depended on
   the old winit and now depends on the new one.

This is a breaking API change, so the next release should be a major
version bump.
@mrobinson mrobinson requested a review from jdm January 26, 2024 08:10
@jdm jdm added this pull request to the merge queue Jan 26, 2024
Merged via the queue into main with commit 3f09ecc Jan 26, 2024
12 checks passed
@atouchet atouchet mentioned this pull request Jan 28, 2024
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