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

Zhani/adapt new backend api #160

Merged
merged 5 commits into from
Nov 7, 2023
Merged

Zhani/adapt new backend api #160

merged 5 commits into from
Nov 7, 2023

Conversation

zhani
Copy link
Contributor

@zhani zhani commented Oct 25, 2023

WPEBackend-android internals and API has been rewritten for fence support.
This patch adapts new API and posts fence FD to SurfaceControl for synchronization

neodesys
neodesys previously approved these changes Oct 26, 2023
Copy link
Collaborator

@neodesys neodesys left a comment

Choose a reason for hiding this comment

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

Take special care at your destructors declaration. If a class is not final it can be inherited and then its destructor must be virtual else you will have border effects at destruction time.

A good rule is:

  • if you design your class to not be inherited, set the class final with a non-virtual destructor
  • if you don't set your class final (because you want to inherit from it or you're not sure if one day somebody is going to inherit from it) then your destructor must be virtual

wpe/src/main/cpp/Browser/ScopedFD.h Show resolved Hide resolved
wpe/src/main/cpp/Browser/SurfaceControl.h Outdated Show resolved Hide resolved
wpe/src/main/cpp/Browser/SurfaceControl.h Outdated Show resolved Hide resolved
wpe/src/main/cpp/Browser/SurfaceControl.h Outdated Show resolved Hide resolved
wpe/src/main/cpp/Browser/SurfaceControl.h Outdated Show resolved Hide resolved
neodesys
neodesys previously approved these changes Nov 7, 2023
@zhani zhani force-pushed the zhani/adapt_new_backend_api branch 4 times, most recently from b9f5531 to ca17083 Compare November 7, 2023 12:16
New WPEBackend-android API introduces sync fence which
is used when posting buffers to surface control
@zhani zhani force-pushed the zhani/adapt_new_backend_api branch from ca17083 to 4e192b2 Compare November 7, 2023 13:36
@zhani zhani requested a review from neodesys November 7, 2023 13:55
@zhani zhani merged commit d539db9 into main Nov 7, 2023
6 checks passed
@zhani zhani deleted the zhani/adapt_new_backend_api branch November 7, 2023 14:21
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