mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 735894 - Fire the discard timeout twice as often, so images are discarded after between 1 and 1.5 discard timeout intervals, instead of between 1 and 2 intervals. r=joe
--HG-- extra : rebase_source : 2ca143b901616b42d3e7c8f25349d04f5f0cb288
This commit is contained in:
parent
380905d6c1
commit
e2caad4005
@ -199,10 +199,12 @@ DiscardTracker::EnableTimer()
|
||||
return NS_OK;
|
||||
sTimerOn = true;
|
||||
|
||||
// Activate
|
||||
// Activate the timer. Have it call us back in (sMinDiscardTimeoutMs / 2)
|
||||
// ms, so that an image is discarded between sMinDiscardTimeoutMs and
|
||||
// (3/2 * sMinDiscardTimeoutMs) ms after it's unlocked.
|
||||
return sTimer->InitWithFuncCallback(TimerCallback,
|
||||
nsnull,
|
||||
sMinDiscardTimeoutMs,
|
||||
sMinDiscardTimeoutMs / 2,
|
||||
nsITimer::TYPE_REPEATING_SLACK);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user