зеркало из https://github.com/mozilla/gecko-dev.git
Rename the GPU process prefs. (bug 1330554, r=milan)
This commit is contained in:
Родитель
4af3584f80
Коммит
73fc4d8599
|
@ -55,7 +55,7 @@ GPUProcessHost::WaitForLaunch()
|
|||
return !!mGPUChild;
|
||||
}
|
||||
|
||||
int32_t timeoutMs = gfxPrefs::GPUProcessDevTimeoutMs();
|
||||
int32_t timeoutMs = gfxPrefs::GPUProcessTimeoutMs();
|
||||
|
||||
// Our caller expects the connection to be finished after we return, so we
|
||||
// immediately set up the IPDL actor and fire callbacks. The IO thread will
|
||||
|
|
|
@ -325,7 +325,7 @@ GPUProcessManager::OnProcessUnexpectedShutdown(GPUProcessHost* aHost)
|
|||
|
||||
DestroyProcess();
|
||||
|
||||
if (mNumProcessAttempts > uint32_t(gfxPrefs::GPUProcessDevMaxRestarts())) {
|
||||
if (mNumProcessAttempts > uint32_t(gfxPrefs::GPUProcessMaxRestarts())) {
|
||||
char disableMessage[64];
|
||||
SprintfLiteral(disableMessage, "GPU process disabled after %d attempts",
|
||||
mNumProcessAttempts);
|
||||
|
|
|
@ -2212,18 +2212,18 @@ gfxPlatform::InitGPUProcessPrefs()
|
|||
{
|
||||
// We want to hide this from about:support, so only set a default if the
|
||||
// pref is known to be true.
|
||||
if (!gfxPrefs::GPUProcessDevEnabled() && !gfxPrefs::GPUProcessDevForceEnabled()) {
|
||||
if (!gfxPrefs::GPUProcessEnabled() && !gfxPrefs::GPUProcessForceEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
FeatureState& gpuProc = gfxConfig::GetFeature(Feature::GPU_PROCESS);
|
||||
|
||||
gpuProc.SetDefaultFromPref(
|
||||
gfxPrefs::GetGPUProcessDevEnabledPrefName(),
|
||||
gfxPrefs::GetGPUProcessEnabledPrefName(),
|
||||
true,
|
||||
gfxPrefs::GetGPUProcessDevEnabledPrefDefault());
|
||||
gfxPrefs::GetGPUProcessEnabledPrefDefault());
|
||||
|
||||
if (gfxPrefs::GPUProcessDevForceEnabled()) {
|
||||
if (gfxPrefs::GPUProcessForceEnabled()) {
|
||||
gpuProc.UserForceEnable("User force-enabled via pref");
|
||||
}
|
||||
|
||||
|
|
|
@ -491,10 +491,10 @@ private:
|
|||
DECL_GFX_PREF(Live, "layers.flash-borders", FlashLayerBorders, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.force-shmem-tiles", ForceShmemTiles, bool, false);
|
||||
DECL_GFX_PREF(Live, "layers.frame-counter", DrawFrameCounter, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.dev.enabled", GPUProcessDevEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.dev.force-enabled", GPUProcessDevForceEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.dev.timeout_ms", GPUProcessDevTimeoutMs, int32_t, 5000);
|
||||
DECL_GFX_PREF(Live, "layers.gpu-process.dev.max_restarts", GPUProcessDevMaxRestarts, int32_t, 0);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.enabled", GPUProcessEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.force-enabled", GPUProcessForceEnabled, bool, false);
|
||||
DECL_GFX_PREF(Once, "layers.gpu-process.timeout_ms", GPUProcessTimeoutMs, int32_t, 5000);
|
||||
DECL_GFX_PREF(Live, "layers.gpu-process.max_restarts", GPUProcessMaxRestarts, int32_t, 0);
|
||||
DECL_GFX_PREF(Live, "layers.low-precision-buffer", UseLowPrecisionBuffer, bool, false);
|
||||
DECL_GFX_PREF(Live, "layers.low-precision-opacity", LowPrecisionOpacity, float, 1.0f);
|
||||
DECL_GFX_PREF(Live, "layers.low-precision-resolution", LowPrecisionResolution, float, 0.25f);
|
||||
|
|
|
@ -4569,7 +4569,7 @@ pref("layers.acceleration.disabled", false);
|
|||
pref("layers.bench.enabled", false);
|
||||
|
||||
#if defined(XP_WIN) && defined(NIGHTLY_BUILD)
|
||||
pref("layers.gpu-process.dev.enabled", true);
|
||||
pref("layers.gpu-process.enabled", true);
|
||||
pref("media.gpu-process-decoder", true);
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче