Bug 1726063 - Remove option to use BasicLayerManager. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D122796
This commit is contained in:
Matt Woodrow 2021-08-17 23:19:44 +00:00
Родитель f902c9a1ad
Коммит f8ba1239ca
3 изменённых файлов: 2 добавлений и 17 удалений

Просмотреть файл

@ -4836,11 +4836,6 @@
value: true value: true
mirror: always mirror: always
- name: gfx.basic_layer_manager.force_enabled
type: RelaxedAtomicBool
value: false
mirror: always
# Whether to enable LayerScope tool and default listening port. # Whether to enable LayerScope tool and default listening port.
- name: gfx.layerscope.enabled - name: gfx.layerscope.enabled
type: RelaxedAtomicBool type: RelaxedAtomicBool

Просмотреть файл

@ -602,13 +602,7 @@ WindowRenderer* PuppetWidget::GetWindowRenderer() {
if (XRE_IsParentProcess()) { if (XRE_IsParentProcess()) {
// On the parent process there is no CompositorBridgeChild which confuses // On the parent process there is no CompositorBridgeChild which confuses
// some layers code, so we use basic layers instead. Note that we create // some layers code, so we use basic layers instead. Note that we create
// a non-retaining layer manager since we don't care about performance. mWindowRenderer = new FallbackRenderer;
if (StaticPrefs::gfx_basic_layer_manager_force_enabled()) {
mWindowRenderer =
new BasicLayerManager(BasicLayerManager::BLM_OFFSCREEN);
} else {
mWindowRenderer = new FallbackRenderer;
}
return mWindowRenderer; return mWindowRenderer;
} }

Просмотреть файл

@ -1533,11 +1533,7 @@ WindowRenderer* nsBaseWidget::GetWindowRenderer() {
} }
WindowRenderer* nsBaseWidget::CreateBasicLayerManager() { WindowRenderer* nsBaseWidget::CreateBasicLayerManager() {
if (StaticPrefs::gfx_basic_layer_manager_force_enabled()) { return new FallbackRenderer;
return new BasicLayerManager(this);
} else {
return new FallbackRenderer;
}
} }
CompositorBridgeChild* nsBaseWidget::GetRemoteRenderer() { CompositorBridgeChild* nsBaseWidget::GetRemoteRenderer() {