mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
webgl: Don't dirty canvas element while in immersive mode.
This commit is contained in:
parent
148c24c29c
commit
ab75808b8c
3 changed files with 18 additions and 0 deletions
|
@ -59,6 +59,10 @@ impl Navigator {
|
|||
pub fn new(window: &Window) -> DomRoot<Navigator> {
|
||||
reflect_dom_object(Box::new(Navigator::new_inherited()), window)
|
||||
}
|
||||
|
||||
pub fn xr(&self) -> Option<DomRoot<XRSystem>> {
|
||||
self.xr.get()
|
||||
}
|
||||
}
|
||||
|
||||
impl NavigatorMethods for Navigator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue