#446: cap default frame rate to 30fps (based on M1503339)

This commit is contained in:
Cameron Kaiser 2019-03-25 21:27:30 -07:00
parent 4594eee516
commit 9465ea36d8

View File

@ -2138,7 +2138,8 @@ gfxPlatform::IsInLayoutAsapMode()
/* static */ bool /* static */ bool
gfxPlatform::ForceSoftwareVsync() gfxPlatform::ForceSoftwareVsync()
{ {
return Preferences::GetInt("layout.frame_rate", -1) > 0; // TenFourFox issue 446
return true; // return Preferences::GetInt("layout.frame_rate", -1) > 0;
} }
/* static */ int /* static */ int
@ -2155,12 +2156,14 @@ gfxPlatform::GetSoftwareVsyncRate()
/* static */ int /* static */ int
gfxPlatform::GetDefaultFrameRate() gfxPlatform::GetDefaultFrameRate()
{ {
return 60; return 30; // TenFourFox issue 446
} }
void void
gfxPlatform::GetApzSupportInfo(mozilla::widget::InfoObject& aObj) gfxPlatform::GetApzSupportInfo(mozilla::widget::InfoObject& aObj)
{ {
return;
if (!gfxPlatform::AsyncPanZoomEnabled()) { if (!gfxPlatform::AsyncPanZoomEnabled()) {
return; return;
} }