#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
1 changed files with 5 additions and 2 deletions

View File

@ -2138,7 +2138,8 @@ gfxPlatform::IsInLayoutAsapMode()
/* static */ bool
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
@ -2155,12 +2156,14 @@ gfxPlatform::GetSoftwareVsyncRate()
/* static */ int
gfxPlatform::GetDefaultFrameRate()
{
return 60;
return 30; // TenFourFox issue 446
}
void
gfxPlatform::GetApzSupportInfo(mozilla::widget::InfoObject& aObj)
{
return;
if (!gfxPlatform::AsyncPanZoomEnabled()) {
return;
}