mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197898 - Delete vsync refresh driver preference. r=kats
This commit is contained in:
parent
bf9289d0a9
commit
9aa845659d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user