mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Bug 1638123 - Call WebGLContext::ClearVRFrame when ending WebXR session. r=jgilbert,kip,daoshengmu
In WebVR we call WebGLContext::ClearVRFrame when the presentation ends. We didn't have the equivalent call in WebXR. It helps to reduce memory usage earlier when exiting WebXR and reduces potential deadlocks if the ExternalVR client didn't call SurfaceTexture->ReleaseTexImage() correctly. Differential Revision: https://phabricator.services.mozilla.com/D75417
This commit is contained in:
parent
b26c4286f6
commit
bbbf079a0d
@ -259,7 +259,10 @@ HTMLCanvasElement* XRWebGLLayer::GetCanvas() {
|
||||
return mWebGL->GetParentObject();
|
||||
}
|
||||
|
||||
void XRWebGLLayer::SessionEnded() { DeleteFramebuffer(); }
|
||||
void XRWebGLLayer::SessionEnded() {
|
||||
DeleteFramebuffer();
|
||||
mWebGL->ClearVRFrame();
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
Loading…
x
Reference in New Issue
Block a user