mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 1012198: Allow BasicCompositor to be used on windows. r=BenWa
This commit is contained in:
parent
b0e94d5a46
commit
249d936285
@ -874,6 +874,7 @@ nsBaseWidget::GetPreferredCompositorBackends(nsTArray<LayersBackend>& aHints)
|
||||
static void
|
||||
CheckForBasicBackends(nsTArray<LayersBackend>& aHints)
|
||||
{
|
||||
#ifndef XP_WIN
|
||||
for (size_t i = 0; i < aHints.Length(); ++i) {
|
||||
if (aHints[i] == LayersBackend::LAYERS_BASIC &&
|
||||
!Preferences::GetBool("layers.offmainthreadcomposition.force-basic", false)) {
|
||||
@ -881,6 +882,7 @@ CheckForBasicBackends(nsTArray<LayersBackend>& aHints)
|
||||
aHints[i] = LayersBackend::LAYERS_NONE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||
|
Loading…
Reference in New Issue
Block a user