Bug 1390741 - Use BasicCompositor if widget type does not support acceleration r=aosmond,kats
This commit is contained in:
@@ -1255,11 +1255,10 @@ nsBaseWidget::CreateCompositorSession(int aWidth,
|
||||
do {
|
||||
CreateCompositorVsyncDispatcher();
|
||||
|
||||
bool enableWR = gfx::gfxVars::UseWebRender();
|
||||
if (enableWR && !WidgetTypeSupportsAcceleration()) {
|
||||
// fall back to basic
|
||||
break;
|
||||
}
|
||||
// If widget type does not supports acceleration, we use ClientLayerManager
|
||||
// even when gfxVars::UseWebRender() is true. WebRender could coexist only
|
||||
// with BasicCompositor.
|
||||
bool enableWR = gfx::gfxVars::UseWebRender() && WidgetTypeSupportsAcceleration();
|
||||
bool enableAPZ = UseAPZ();
|
||||
CompositorOptions options(enableAPZ, enableWR);
|
||||
|
||||
@@ -1303,8 +1302,6 @@ nsBaseWidget::CreateCompositorSession(int aWidth,
|
||||
return lm.forget();
|
||||
}
|
||||
} while (true);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||
|
||||
Reference in New Issue
Block a user