From 8aa11a9056480570d98b2a277571206bfdd79c83 Mon Sep 17 00:00:00 2001 From: Milan Sreckovic Date: Tue, 24 Nov 2015 09:35:00 +0100 Subject: [PATCH] Bug 634063 - Use gfxPrefs for some layers acceleration prefs. r=nical --HG-- extra : rebase_source : 1b61dbf88d361f8a697c3ba70d83b6d92c4de513 --- toolkit/xre/nsAppRunner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index d284a3ee8830..a7d8d06bf370 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -4638,7 +4638,7 @@ mozilla::BrowserTabsRemoteAutostart() // allowed because these tests must be allowed to run remotely. // We are also allowing e10s to be enabled on Beta (which doesn't have E10S_TESTING_ONLY defined. bool e10sAllowed = Preferences::GetDefaultCString("app.update.channel").EqualsLiteral("beta") || - Preferences::GetBool("layers.offmainthreadcomposition.testing.enabled", false); + gfxPrefs::GetSingleton().LayersOffMainThreadCompositionTestingEnabled(); #endif // Check for some conditions that might disable e10s. @@ -4662,8 +4662,8 @@ mozilla::BrowserTabsRemoteAutostart() // e10s auto start on mac. if (gBrowserTabsRemoteAutostart) { // Check prefs - bool accelDisabled = Preferences::GetBool("layers.acceleration.disabled", false) && - !Preferences::GetBool("layers.acceleration.force-enabled", false); + bool accelDisabled = gfxPrefs::GetSingleton().LayersAccelerationDisabled() && + !gfxPrefs::LayersAccelerationForceEnabled(); accelDisabled = accelDisabled || !nsCocoaFeatures::AccelerateByDefault();