зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1726063 - Remove option to use BasicLayerManager. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D122796
This commit is contained in:
Родитель
f902c9a1ad
Коммит
f8ba1239ca
|
@ -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() {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче