зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1259466. Rename layers.offmainthreadcomposition.enabled. r=milan
We would rather people not use this pref.
This commit is contained in:
Родитель
dfee85ecef
Коммит
83bb88f11e
|
@ -298,7 +298,6 @@ pref("ui.dragThresholdY", 25);
|
|||
|
||||
// Layers Acceleration. We can only have nice things on gonk, because
|
||||
// they're not maintained anywhere else.
|
||||
pref("layers.offmainthreadcomposition.enabled", true);
|
||||
#ifndef MOZ_WIDGET_GONK
|
||||
pref("dom.ipc.tabs.disabled", true);
|
||||
#else
|
||||
|
|
|
@ -26,7 +26,6 @@ oopCommandlineHandler.prototype = {
|
|||
// environment
|
||||
branch.setBoolPref("dom.ipc.tabs.disabled", false);
|
||||
branch.setBoolPref("layers.acceleration.disabled", false);
|
||||
branch.setBoolPref("layers.offmainthreadcomposition.enabled", true);
|
||||
branch.setBoolPref("layers.offmainthreadcomposition.async-animations", true);
|
||||
branch.setBoolPref("layers.async-video.enabled", true);
|
||||
branch.setBoolPref("layers.async-pan-zoom.enabled", true);
|
||||
|
|
|
@ -3865,15 +3865,7 @@ function OpenBrowserWindow(options)
|
|||
}
|
||||
|
||||
if (options && options.remote) {
|
||||
// If we're using remote tabs by default, then OMTC will be force-enabled,
|
||||
// despite the preference returning as false.
|
||||
let omtcEnabled = gPrefService.getBoolPref("layers.offmainthreadcomposition.enabled")
|
||||
|| Services.appinfo.browserTabsRemoteAutostart;
|
||||
if (!omtcEnabled) {
|
||||
alert("To use out-of-process tabs, you must set the layers.offmainthreadcomposition.enabled preference and restart. Opening a normal window instead.");
|
||||
} else {
|
||||
extraFeatures += ",remote";
|
||||
}
|
||||
extraFeatures += ",remote";
|
||||
} else if (options && options.remote === false) {
|
||||
extraFeatures += ",non-remote";
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ GetAndInitDisplayForAccelANGLE(GLLibraryEGL& egl)
|
|||
// D3D11 ANGLE only works with OMTC; there's a bug in the non-OMTC layer
|
||||
// manager, and it's pointless to try to fix it. We also don't try
|
||||
// D3D11 ANGLE if the layer manager is prefering D3D9 (hrm, do we care?)
|
||||
if (gfxPrefs::LayersOffMainThreadCompositionEnabled() &&
|
||||
if (!gfxPrefs::LayersOffMainThreadCompositionForceDisabled() &&
|
||||
!gfxPrefs::LayersPreferD3D9())
|
||||
{
|
||||
if (gfxPrefs::WebGLANGLEForceD3D11())
|
||||
|
|
|
@ -599,13 +599,12 @@ gfxPlatform::Init()
|
|||
gfxPrefs::Direct2DForceEnabled(),
|
||||
gfxPrefs::DirectWriteFontRenderingForceEnabled());
|
||||
// Layers prefs
|
||||
forcedPrefs.AppendPrintf("-L%d%d%d%d%d%d",
|
||||
forcedPrefs.AppendPrintf("-L%d%d%d%d%d",
|
||||
gfxPrefs::LayersAMDSwitchableGfxEnabled(),
|
||||
gfxPrefs::LayersAccelerationDisabled(),
|
||||
gfxPrefs::LayersAccelerationForceEnabled(),
|
||||
gfxPrefs::LayersD3D11DisableWARP(),
|
||||
gfxPrefs::LayersD3D11ForceWARP(),
|
||||
gfxPrefs::LayersOffMainThreadCompositionForceEnabled());
|
||||
gfxPrefs::LayersD3D11ForceWARP());
|
||||
// WebGL prefs
|
||||
forcedPrefs.AppendPrintf("-W%d%d%d%d%d%d%d%d",
|
||||
gfxPrefs::WebGLANGLEForceD3D11(),
|
||||
|
@ -2220,8 +2219,7 @@ gfxPlatform::UsesOffMainThreadCompositing()
|
|||
if (firstTime) {
|
||||
result =
|
||||
sPrefBrowserTabsRemoteAutostart ||
|
||||
gfxPrefs::LayersOffMainThreadCompositionEnabled() ||
|
||||
gfxPrefs::LayersOffMainThreadCompositionForceEnabled();
|
||||
!gfxPrefs::LayersOffMainThreadCompositionForceDisabled();
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
// Linux users who chose OpenGL are being grandfathered in to OMTC
|
||||
result |= gfxPrefs::LayersAccelerationForceEnabled();
|
||||
|
|
|
@ -369,8 +369,7 @@ private:
|
|||
DECL_GFX_PREF(Live, "layers.low-precision-opacity", LowPrecisionOpacity, float, 1.0f);
|
||||
DECL_GFX_PREF(Live, "layers.low-precision-resolution", LowPrecisionResolution, float, 0.25f);
|
||||
DECL_GFX_PREF(Live, "layers.max-active", MaxActiveLayers, int32_t, -1);
|
||||
DECL_GFX_PREF(Once, "layers.offmainthreadcomposition.enabled", LayersOffMainThreadCompositionEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.offmainthreadcomposition.force-enabled", LayersOffMainThreadCompositionForceEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.offmainthreadcomposition.force-disabled", LayersOffMainThreadCompositionForceDisabled, bool, false);
|
||||
DECL_GFX_PREF(Live, "layers.offmainthreadcomposition.frame-rate", LayersCompositionFrameRate, int32_t,-1);
|
||||
DECL_GFX_PREF(Live, "layers.orientation.sync.timeout", OrientationSyncMillis, uint32_t, (uint32_t)0);
|
||||
DECL_GFX_PREF(Once, "layers.overzealous-gralloc-unlocking", OverzealousGrallocUnlocking, bool, false);
|
||||
|
|
|
@ -580,7 +580,6 @@ pref("ui.dragThresholdX", 25);
|
|||
pref("ui.dragThresholdY", 25);
|
||||
|
||||
pref("layers.acceleration.disabled", false);
|
||||
pref("layers.offmainthreadcomposition.enabled", true);
|
||||
pref("layers.async-video.enabled", true);
|
||||
|
||||
#ifdef MOZ_ANDROID_APZ
|
||||
|
|
|
@ -4422,8 +4422,6 @@ pref("layers.max-active", -1);
|
|||
// if you change the tile size.
|
||||
pref("layers.tiles.adjust", true);
|
||||
|
||||
// Set the default values, and then override per-platform as needed
|
||||
pref("layers.offmainthreadcomposition.enabled", true);
|
||||
// Compositor target frame rate. NOTE: If vsync is enabled the compositor
|
||||
// frame rate will still be capped.
|
||||
// -1 -> default (match layout.frame_rate or 60 FPS)
|
||||
|
|
|
@ -196,11 +196,6 @@ config = {
|
|||
"--setpref=layers.acceleration.disabled=true"],
|
||||
"tests": ["tests/reftest/tests/layout/reftests/reftest.list"]
|
||||
},
|
||||
"reftest-omtc": {
|
||||
"options": ["--suite=reftest",
|
||||
"--setpref=layers.offmainthreadcomposition.enabled=true"],
|
||||
"tests": ["tests/reftest/tests/layout/reftests/reftest.list"]
|
||||
},
|
||||
"crashtest-ipc": {
|
||||
"options": ["--suite=crashtest",
|
||||
'--setpref=browser.tabs.remote=true',
|
||||
|
|
|
@ -146,7 +146,7 @@ const DEFAULT_ENVIRONMENT_PREFS = new Map([
|
|||
["layers.componentalpha.enabled", {what: RECORD_PREF_VALUE}],
|
||||
["layers.d3d11.disable-warp", {what: RECORD_PREF_VALUE}],
|
||||
["layers.d3d11.force-warp", {what: RECORD_PREF_VALUE}],
|
||||
["layers.offmainthreadcomposition.enabled", {what: RECORD_PREF_VALUE}],
|
||||
["layers.offmainthreadcomposition.force-disabled", {what: RECORD_PREF_VALUE}],
|
||||
["layers.prefer-d3d9", {what: RECORD_PREF_VALUE}],
|
||||
["layers.prefer-opengl", {what: RECORD_PREF_VALUE}],
|
||||
["layout.css.devPixelsPerPx", {what: RECORD_PREF_VALUE}],
|
||||
|
|
Загрузка…
Ссылка в новой задаче