mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1151644 - Don't disallow the basic compositor backend. r=jrmuizel
This commit is contained in:
parent
eb111be052
commit
90063ec981
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user