Bug 1414853 - Ensure LayerManager's backend type is LAYERS_WR in CanUseAdvancedLayer since BasicCompositor might be used for remote extension process; r=sotaro

MozReview-Commit-ID: KzAUXKWJf58

--HG--
extra : rebase_source : 155d8b910e63b0c3cb2eb524053f4d45878ebffa
This commit is contained in:
Kevin Chen 2017-12-05 16:49:14 +08:00
parent 0dfb1ec446
commit 0ef9411420

View File

@ -3118,7 +3118,7 @@ bool
nsDisplayItem::CanUseAdvancedLayer(LayerManager* aManager) const
{
if (!gfxPrefs::LayersAdvancedBasicLayerEnabled() &&
aManager && aManager->GetBackendType() == layers::LayersBackend::LAYERS_BASIC) {
aManager && aManager->GetBackendType() != layers::LayersBackend::LAYERS_WR) {
return false;
}