forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1880323 [Linux] Don't destroy layer manager at DisableRendering()…
… r=emilio Right now we destroy layer managed when nsWindow becomes hidden. It makes sure that window rendering queue is suspended and invalid wl_surface is not used any more. But it's also expensive operation and we need to create layer manager again if the window becomes visible again. It also introduces a regression it tab is reparented and remairing nsWindow is closed. In such case rendering pipeline is deleted and reparented tab is empty as associated rendering resources are already freed. In this patch we don't delete layer manager on window hide but rather keep that operation to nsWindow::Destroy() as we do before. Instead force GL backend to create small fallback EGLSurface for hidden nsWindow and keep potential async rendering running until the window is deleted. Differential Revision: https://phabricator.services.mozilla.com/D202179
- Loading branch information
Showing
2 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters