Bug 942649. Remove a duplicate call to CreateCompositor. r=mattwoodrow

This commit is contained in:
Nicholas Cameron 2013-11-25 20:07:31 +13:00
parent bd20adfb23
commit 418760396b

View File

@ -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();
}
}