mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
webxr: create glwindow with Rc window and without rendering context (#34813)
* Create webxr glwindow with Rc window Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Remove obselte gurad type Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Update GlWindow trait method Signed-off-by: Wu Yuwei <yuweiwu@pm.me> * Update how webxr discorvery is created Now glwindow will create a hidden window. It's better to not use it unless we really want to use this port. Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Link back to upstream webxr repo Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Signed-off-by: Wu Yuwei <yuweiwu@pm.me>
This commit is contained in:
parent
b252f238d1
commit
da2074e5d6
7 changed files with 26 additions and 97 deletions
|
@ -404,6 +404,8 @@ mod gen {
|
|||
test: bool,
|
||||
first_person_observer_view: bool,
|
||||
glwindow: {
|
||||
/// Enable servo/webxr's glwindow port. This is enabled only if openxr is
|
||||
/// disabled.
|
||||
#[serde(default)]
|
||||
enabled: bool,
|
||||
#[serde(rename = "dom.webxr.glwindow.left-right")]
|
||||
|
@ -421,6 +423,7 @@ mod gen {
|
|||
enabled: bool,
|
||||
},
|
||||
openxr: {
|
||||
/// Enable servo/webxr's openxr port
|
||||
enabled: bool,
|
||||
},
|
||||
sessionavailable: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue