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

ndk/native_window: Link against libnativewindow for API >= 26 functions #465

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

MarijnS95
Copy link
Member

Per the libandroid function map newer NativeWindow functions are no longer available; these instead need to be linked from the libnativewindow library directly.

Ref: android/ndk#1982

@MarijnS95 MarijnS95 added the impact: breaking API/ABI-breaking change label Jan 18, 2024
@MarijnS95 MarijnS95 requested a review from rib January 29, 2024 23:21
Copy link
Contributor

@rib rib left a comment

Choose a reason for hiding this comment

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

Ah, fun :/
Yeah looks good to me

@@ -377,7 +378,7 @@ impl<'a> Drop for NativeWindowBufferLockGuard<'a> {
}
}

#[cfg(feature = "api-level-26")]
#[cfg(all(feature = "nativewindow", feature = "api-level-26"))]
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm just realizing that I'll revert this and the change for the two enums below for SurfaceTransaction again (in an upcoming PR), as these are exposed directly from libandroid.

@MarijnS95 MarijnS95 merged commit 575489b into master Feb 4, 2024
38 checks passed
@MarijnS95 MarijnS95 deleted the native-window-libandroid branch February 4, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact: breaking API/ABI-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants