Bug 1197898 - Delete vsync refresh driver preference. r=kats

This commit is contained in:
Mason Chang 2015-08-25 09:01:40 -04:00
parent bf9289d0a9
commit 9aa845659d
5 changed files with 1 additions and 20 deletions

View File

@ -580,9 +580,7 @@ CompositorParent::CompositorParent(nsIWidget* aWidget,
mApzcTreeManager = new APZCTreeManager();
}
gfxDebugOnce() << "Enabling vsync compositor";
mCompositorScheduler = new CompositorVsyncScheduler(this, aWidget);
LayerScope::SetPixelScale(mWidget->GetDefaultScale().scale);
}

View File

@ -147,10 +147,6 @@ TEST_F(VsyncTester, CompositorGetVsyncNotifications)
// Test that if we have vsync enabled, the parent refresh driver should get notifications
TEST_F(VsyncTester, ParentRefreshDriverGetVsyncNotifications)
{
if (!gfxPrefs::VsyncAlignedRefreshDriver()) {
return;
}
VsyncSource::Display& globalDisplay = mVsyncSource->GetGlobalDisplay();
globalDisplay.DisableVsync();
ASSERT_FALSE(globalDisplay.IsVsyncEnabled());
@ -177,10 +173,6 @@ TEST_F(VsyncTester, ParentRefreshDriverGetVsyncNotifications)
// Test that child refresh vsync observers get vsync notifications
TEST_F(VsyncTester, ChildRefreshDriverGetVsyncNotifications)
{
if (!gfxPrefs::VsyncAlignedRefreshDriver()) {
return;
}
VsyncSource::Display& globalDisplay = mVsyncSource->GetGlobalDisplay();
globalDisplay.DisableVsync();
ASSERT_FALSE(globalDisplay.IsVsyncEnabled());

View File

@ -260,7 +260,6 @@ private:
// processing them. So 80 ms / 16 = 5 vsync events. Double it up just to be on the safe side, so 10.
DECL_GFX_PREF(Once, "gfx.vsync.compositor.unobserve-count", CompositorUnobserveCount, int32_t, 10);
// Use vsync events generated by hardware
DECL_GFX_PREF(Once, "gfx.vsync.refreshdriver", VsyncAlignedRefreshDriver, bool, false);
DECL_GFX_PREF(Once, "gfx.work-around-driver-bugs", WorkAroundDriverBugs, bool, true);
DECL_GFX_PREF(Once, "gfx.screen-mirroring.enabled", ScreenMirroringEnabled, bool, false);

View File

@ -735,13 +735,10 @@ CreateVsyncRefreshTimer()
// ready.
gfxPrefs::GetSingleton();
if (!gfxPrefs::VsyncAlignedRefreshDriver()
|| gfxPlatform::IsInLayoutAsapMode()) {
if (gfxPlatform::IsInLayoutAsapMode()) {
return;
}
NS_WARNING("Enabling vsync refresh driver");
if (XRE_IsParentProcess()) {
// Make sure all vsync systems are ready.
gfxPlatform::GetPlatform();

View File

@ -5046,11 +5046,6 @@ pref("media.gmp.insecure.allow", false);
pref("dom.audiochannel.mutedByDefault", false);
// Use vsync aligned rendering. b2g prefs are in b2g.js.
// Hardware vsync supported on windows, os x, and b2g.
// Linux and fennec will use software vsync.
pref("gfx.vsync.refreshdriver", true);
// Secure Element API
#ifdef MOZ_SECUREELEMENT
pref("dom.secureelement.enabled", false);