mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 942649. Remove a duplicate call to CreateCompositor. r=mattwoodrow
This commit is contained in:
parent
bd20adfb23
commit
418760396b
@ -3337,16 +3337,7 @@ nsWindow::GetLayerManager(PLayerTransactionChild* aShadowManager,
|
||||
|
||||
// Fall back to software if we couldn't use any hardware backends.
|
||||
if (!mLayerManager) {
|
||||
// Try to use an async compositor first, if possible
|
||||
if (ShouldUseOffMainThreadCompositing()) {
|
||||
// e10s uses the parameter to pass in the shadow manager from the TabChild
|
||||
// so we don't expect to see it there since this doesn't support e10s.
|
||||
NS_ASSERTION(aShadowManager == nullptr, "Async Compositor not supported with e10s");
|
||||
CreateCompositor();
|
||||
}
|
||||
|
||||
if (!mLayerManager)
|
||||
mLayerManager = CreateBasicLayerManager();
|
||||
mLayerManager = CreateBasicLayerManager();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user