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 SbWindowGetDisplayHandle to Starboard Windowing interface #2690

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kaidokert
Copy link
Member

Adding a function to retrieves native EGL display handle, which will simplifying correct EGL context initialization on Windowing systems like GBM or Wayland.
This complements already existing SbWindowGetPlatformHandle.

Our current EGL initialization sequence calls:

eglGetDisplay(SB_EGL_DEFAULT_DISPLAY)

However, some windowing setups require native display handle to be passed in, instead of passing the default.

b/157237252

@kaidokert kaidokert force-pushed the displaywindowhandle branch 2 times, most recently from f941c5d to ab039df Compare March 24, 2024 02:57
Copy link

codecov bot commented Mar 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.18%. Comparing base (db11969) to head (d4650d3).
Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2690      +/-   ##
==========================================
- Coverage   58.25%   58.18%   -0.07%     
==========================================
  Files        1794     1896     +102     
  Lines       84889    94012    +9123     
==========================================
+ Hits        49450    54703    +5253     
- Misses      35439    39309    +3870     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Adding a function to retrieves native EGL display handle, which will
simplifying correct EGL context initialization on Windowing systems
like GBM or Wayland.
This complements already existing SbWindowGetPlatformHandle.

Our current EGL initialization sequence calls:

    eglGetDisplay(SB_EGL_DEFAULT_DISPLAY)

However, some windowing setups require native display
handle to be passed in, instead of passing the default.

b/157237252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant