Bug 1012198: Allow BasicCompositor to be used on windows. r=BenWa

This commit is contained in:
Bas Schouten 2014-05-18 08:00:09 +02:00
parent 054a93df8f
commit 19c8902566

View File

@ -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)