Bug 1910516 - Treat webgl context as in-process when determining texture type if context is lost. r=jgilbert

Differential Revision: https://phabricator.services.mozilla.com/D218047
This commit is contained in:
Jamie Nicol
2024-07-30 21:03:10 +00:00
parent 825c49abba
commit e2c9335f53

View File

@@ -468,8 +468,8 @@ void ClientWebGLContext::EndComposition() {
layers::TextureType ClientWebGLContext::GetTexTypeForSwapChain() const { layers::TextureType ClientWebGLContext::GetTexTypeForSwapChain() const {
const RefPtr<layers::ImageBridgeChild> imageBridge = const RefPtr<layers::ImageBridgeChild> imageBridge =
layers::ImageBridgeChild::GetSingleton(); layers::ImageBridgeChild::GetSingleton();
return layers::TexTypeForWebgl(imageBridge, const bool isOutOfProcess = mNotLost && mNotLost->outOfProcess != nullptr;
mNotLost->outOfProcess != nullptr); return layers::TexTypeForWebgl(imageBridge, isOutOfProcess);
} }
void ClientWebGLContext::Present(WebGLFramebufferJS* const xrFb, void ClientWebGLContext::Present(WebGLFramebufferJS* const xrFb,