mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-24 15:24:18 +00:00
#446: cap default frame rate to 30fps (based on M1503339)
This commit is contained in:
parent
4594eee516
commit
9465ea36d8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user