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

Add a CogFallbackPlatform implementation #566

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

aperezdc
Copy link
Member

@aperezdc aperezdc commented May 5, 2023

This PR includes two commits:

  • The first adds a new CogFallbackPlatform implementation, which can handle plain WPE backends (like WPEBackend-rdk). This gets built into the core library and thus is always available, instead of building it as a plug-in.
  • The second removes the ad-hoc handling of plain WPE backends, which are left to be handled by CogFallbackPlatform.

@aperezdc aperezdc added the enhancement New feature or request label May 5, 2023
@aperezdc aperezdc self-assigned this May 5, 2023
@aperezdc
Copy link
Member Author

aperezdc commented May 5, 2023

This is something I had in a local branch with improvements to the ease of use of the public API, and could be easile extracted into its own patch set. Tested with WPEBackend-rdk built with its Wayland-EGL support, but I expect all other build modes should work, as well as other WPE backends which support this mode of operation 😉

This adds a new CogFallbackPlatform implementation, which gets
built into the core library. Instead of requiring applications to
implement themselves the needed code to use plain WPE backends (like
WPEBackend-rdk), they can rely on a CogPlatform instance being always
instantiated and available. The implementation is registered to the
GIO extension point automatically and always available.

This new platform has the lowest possible priority and needs to be
manually selected: while it is debatable that it should have more
priority than the headless platform, keeping it this aligns better
with existing behaviour.
Remove the code from the launcher that handled plain WPE backends (like
WPEBackend-rdk); which the new CogFallbackPlatform can take care of.
@aperezdc aperezdc force-pushed the aperezdc/fallback-platform branch from 2c0b5fe to 49c7df7 Compare May 18, 2023 20:47
@aperezdc aperezdc merged commit 0606be4 into master May 18, 2023
@aperezdc aperezdc deleted the aperezdc/fallback-platform branch May 18, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants