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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user