diff options
author | Moonchild <moonchild@palemoon.org> | 2022-01-11 15:34:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-08 00:55:37 +0200 |
commit | 56d9003017a94e7619f98e76b04929115514d08c (patch) | |
tree | 952bd79e8cb7cfa2d071b6dbf13d95caed9d24fa /gfx/thebes | |
parent | e49b80dba7393d5baff831251f7981bc21324d81 (diff) | |
download | uxp-56d9003017a94e7619f98e76b04929115514d08c.tar.gz |
Issue #953 - Neuter the user-facing controls for e10s
This should prevent people using a massive footgun that would blow off
their entire legs. Requires appropriate FE changes.
Diffstat (limited to 'gfx/thebes')
-rw-r--r-- | gfx/thebes/gfxPlatform.cpp | 41 |
1 files changed, 7 insertions, 34 deletions
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index 28282a90d2..21e15bf06f 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -519,12 +519,7 @@ static uint32_t GetSkiaGlyphCacheSize() // Chromium uses 20mb and skia default uses 2mb. // We don't need to change the font cache count since we usually // cache thrash due to asian character sets in talos. - // Only increase memory on the content proces uint32_t cacheSize = 10 * 1024 * 1024; - if (mozilla::BrowserTabsRemoteAutostart()) { - return XRE_IsContentProcess() ? cacheSize : kDefaultGlyphCacheSize; - } - return cacheSize; } #endif @@ -2023,7 +2018,6 @@ gfxPlatform::InitAcceleration() gfxPrefs::GetSingleton(); if (XRE_IsParentProcess()) { - gfxVars::SetBrowserTabsRemoteAutostart(BrowserTabsRemoteAutostart()); gfxVars::SetOffscreenFormat(GetOffscreenFormat()); gfxVars::SetRequiresAcceleratedGLContextForCompositorOGL( RequiresAcceleratedGLContextForCompositorOGL()); @@ -2075,30 +2069,11 @@ gfxPlatform::InitGPUProcessPrefs() gpuProc.UserForceEnable("User force-enabled via pref"); } - // We require E10S - otherwise, there is very little benefit to the GPU - // process, since the UI process must still use acceleration for - // performance. - if (!BrowserTabsRemoteAutostart()) { - gpuProc.ForceDisable( - FeatureStatus::Unavailable, - "Multi-process mode is not enabled", - NS_LITERAL_CSTRING("FEATURE_FAILURE_NO_E10S")); - return; - } - if (InSafeMode()) { - gpuProc.ForceDisable( - FeatureStatus::Blocked, - "Safe-mode is enabled", - NS_LITERAL_CSTRING("FEATURE_FAILURE_SAFE_MODE")); - return; - } - if (gfxPrefs::LayerScopeEnabled()) { - gpuProc.ForceDisable( - FeatureStatus::Blocked, - "LayerScope does not work in the GPU process", - NS_LITERAL_CSTRING("FEATURE_FAILURE_LAYERSCOPE")); - return; - } + gpuProc.ForceDisable( + FeatureStatus::Unavailable, + "GPU processes are not supported", + NS_LITERAL_CSTRING("FEATURE_FAILURE_NO_E10S")); + return; } void @@ -2203,9 +2178,7 @@ gfxPlatform::UsesOffMainThreadCompositing() if (firstTime) { MOZ_ASSERT(sLayersAccelerationPrefsInitialized); - result = - gfxVars::BrowserTabsRemoteAutostart() || - !gfxPrefs::LayersOffMainThreadCompositionForceDisabled(); + result = !gfxPrefs::LayersOffMainThreadCompositionForceDisabled(); #if defined(MOZ_WIDGET_GTK) // Linux users who chose OpenGL are being grandfathered in to OMTC result |= gfxPrefs::LayersAccelerationForceEnabledDoNotUseDirectly(); @@ -2302,7 +2275,7 @@ gfxPlatform::AsyncPanZoomEnabled() #if !defined(MOZ_WIDGET_UIKIT) // For XUL applications (everything but Firefox on Android) we only want // to use APZ when E10S is enabled or when the user explicitly enable it. - if (BrowserTabsRemoteAutostart() || gfxPrefs::APZDesktopEnabled()) { + if (gfxPrefs::APZDesktopEnabled()) { return gfxPrefs::AsyncPanZoomEnabledDoNotUseDirectly(); } else { return false; |