зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1012198: Allow BasicCompositor to be used on windows. r=BenWa
This commit is contained in:
Родитель
b0e94d5a46
Коммит
249d936285
|
@ -874,6 +874,7 @@ nsBaseWidget::GetPreferredCompositorBackends(nsTArray<LayersBackend>& aHints)
|
||||||
static void
|
static void
|
||||||
CheckForBasicBackends(nsTArray<LayersBackend>& aHints)
|
CheckForBasicBackends(nsTArray<LayersBackend>& aHints)
|
||||||
{
|
{
|
||||||
|
#ifndef XP_WIN
|
||||||
for (size_t i = 0; i < aHints.Length(); ++i) {
|
for (size_t i = 0; i < aHints.Length(); ++i) {
|
||||||
if (aHints[i] == LayersBackend::LAYERS_BASIC &&
|
if (aHints[i] == LayersBackend::LAYERS_BASIC &&
|
||||||
!Preferences::GetBool("layers.offmainthreadcomposition.force-basic", false)) {
|
!Preferences::GetBool("layers.offmainthreadcomposition.force-basic", false)) {
|
||||||
|
@ -881,6 +882,7 @@ CheckForBasicBackends(nsTArray<LayersBackend>& aHints)
|
||||||
aHints[i] = LayersBackend::LAYERS_NONE;
|
aHints[i] = LayersBackend::LAYERS_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче