unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.45k stars 685 forks source link

[X11] Switch from `DllImport`s to `LibraryImport`s for better performance #16554

Closed Youssef1313 closed 2 days ago

Youssef1313 commented 2 weeks ago

What would you like to be added

All bindings should be switched to LibraryImport:

https://github.com/unoplatform/uno/blob/2ea1c54b08f22b37e7a5ebf73d3049c4538687f1/src/Uno.UI.Runtime.Skia.X11/X11_Bindings/x11bindings_Glx.cs https://github.com/unoplatform/uno/blob/2ea1c54b08f22b37e7a5ebf73d3049c4538687f1/src/Uno.UI.Runtime.Skia.X11/X11ApplicationHost.cs https://github.com/unoplatform/uno/blob/2ea1c54b08f22b37e7a5ebf73d3049c4538687f1/src/Uno.UI.Runtime.Skia.X11/X11_Bindings/x11bindings_XLib.cs https://github.com/unoplatform/uno/blob/2ea1c54b08f22b37e7a5ebf73d3049c4538687f1/src/Uno.UI.Runtime.Skia.X11/X11_Bindings/X11Helper.cs

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

ramezgerges commented 1 week ago

I have quite a few X11 PRs open, so let's put this one on hold until they merge so I don't have to deal with a million conflicts.