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

native_window: Add format() getter and set_buffers_geometry() setter #276

Merged
merged 1 commit into from
May 29, 2022

Conversation

MarijnS95
Copy link
Member

Android's NativeWindow allow querying the format through ANativeWindow_getFormat and setting it through ANativeWindow_setBuffersGeometry together with the dimensions to use for the buffer.

@MarijnS95 MarijnS95 force-pushed the window-format branch 2 times, most recently from df9c806 to cee8500 Compare May 29, 2022 17:33
… setter

Android's `NativeWindow` allow querying the format through
`ANativeWindow_getFormat` and setting it through
`ANativeWindow_setBuffersGeometry` together with the dimensions to use
for the buffer.
@MarijnS95 MarijnS95 merged commit 4330ad2 into master May 29, 2022
@MarijnS95 MarijnS95 deleted the window-format branch May 29, 2022 18:06
MarijnS95 added a commit that referenced this pull request Oct 7, 2023
This was previously reexported from `hardware_buffer` in #276 to
maintain backwards compatibility when the type was originally defined
inside that module.  However, the type was also strangely reexported
from `native_window` (probably a copy-paste error) while it is
accessible from the public `hardware_buffer_format` module leading
to **three** individual modules where `HardwareBufferFormat` can be
imported from.

Reduce this duplication and confusion by forcing it to only be reachable
from the canonical `hardware_buffer_format` module.
MarijnS95 added a commit that referenced this pull request Oct 10, 2023
This was previously reexported from `hardware_buffer` in #276 to
maintain backwards compatibility when the type was originally defined
inside that module.  However, the type was also strangely reexported
from `native_window` (probably a copy-paste error) while it is
accessible from the public `hardware_buffer_format` module leading
to **three** individual modules where `HardwareBufferFormat` can be
imported from.

Reduce this duplication and confusion by forcing it to only be reachable
from the canonical `hardware_buffer_format` module.
MarijnS95 added a commit that referenced this pull request Oct 10, 2023
This was previously reexported from `hardware_buffer` in #276 to
maintain backwards compatibility when the type was originally defined
inside that module.  However, the type was also strangely reexported
from `native_window` (probably a copy-paste error) while it is
accessible from the public `hardware_buffer_format` module leading
to **three** individual modules where `HardwareBufferFormat` can be
imported from.

Reduce this duplication and confusion by forcing it to only be reachable
from the canonical `hardware_buffer_format` module.
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