Skip to content

Improve texture builder APIs #2046

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented May 8, 2025

CC @rmader

@sdroege sdroege requested a review from bilelmoussaoui as a code owner May 8, 2025 12:00
sdroege added 2 commits May 8, 2025 15:03
…nsafe

The fd must be valid for as long as the texture stays around, which
can't be statically guaranteed and is job of the user, e.g. by using the
release function.

And use Borrowed fd for getter.
@sdroege sdroege force-pushed the texture-builders branch from 8d228b7 to 7f00138 Compare May 8, 2025 12:03
name = "build"
manual = true # Can't be auto-generated
[[object.property]]
pattern = "(color-state|display|fourcc|height|modifier|n-planes|premultiplied|update-region|update-texture|width)"
Copy link
Member

Choose a reason for hiding this comment

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

There are certain props here i would probably keep their getters as it can be quite useful for some cases. Eg, https://gitlab.gnome.org/GNOME/libmks/-/blob/main/lib/mks-dmabuf-paintable.c#L194

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