Bug 1725371 - Reenable Gnome subsurface workaround,

This workaround was removed in D121650. Unfortunately we need it
a bit longer until the Mutter fix reaches users, as triggering it
crashes the whole desktop.

Differential Revision: https://phabricator.services.mozilla.com/D122460
This commit is contained in:
Robert Mader 2021-08-12 12:38:48 +00:00
Родитель adfaf6a929
Коммит e5f2181822
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -5919,8 +5919,11 @@ void nsWindow::ResumeCompositorHiddenWindow() {
// pause the compositor and destroy EGLSurface & resume the compositor
// and re-create EGLSurface on next expose event.
void nsWindow::PauseCompositorHiddenWindow() {
if (!mIsAccelerated || mIsDestroyed ||
mCompositorState == COMPOSITOR_PAUSED_INITIALLY) {
// TODO: The compositor backend currently relies on the pause event to work
// around a Gnome specific bug. Remove again once the fix is widely available.
// See bug 1721298
if ((!mIsAccelerated && !gfx::gfxVars::UseWebRenderCompositor()) ||
mIsDestroyed || mCompositorState == COMPOSITOR_PAUSED_INITIALLY) {
return;
}