Bug 1151644 - Don't disallow the basic compositor backend. r=jrmuizel

This commit is contained in:
Nicolas Silva 2015-04-16 07:57:00 +02:00
parent eb111be052
commit 90063ec981

View File

@ -1137,17 +1137,6 @@ void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
nsTArray<LayersBackend> backendHints; nsTArray<LayersBackend> backendHints;
GetPreferredCompositorBackends(backendHints); GetPreferredCompositorBackends(backendHints);
#if !defined(MOZ_X11) && !defined(XP_WIN)
if (!mRequireOffMainThreadCompositing &&
!Preferences::GetBool("layers.offmainthreadcomposition.force-basic", false)) {
for (size_t i = 0; i < backendHints.Length(); ++i) {
if (backendHints[i] == LayersBackend::LAYERS_BASIC) {
backendHints[i] = LayersBackend::LAYERS_NONE;
}
}
}
#endif
bool success = false; bool success = false;
if (!backendHints.IsEmpty()) { if (!backendHints.IsEmpty()) {
shadowManager = mCompositorChild->SendPLayerTransactionConstructor( shadowManager = mCompositorChild->SendPLayerTransactionConstructor(