Description[Mac] Maximise timer slack for background tabs
When a tab not playing audio is sent to the background, set timer slack to its maximum value.
Support for setting timer slack is added at the MessageLoop level, the concrete implementation of this CL only affects CFMessagePump backed MessageLoops (which means just the main thread for backgrounded renderer processes at present).
The MessageLoop implementation is designed to support its use on Windows and Linux (the Windows API sets slack per-timer like the Mac one, while on Linux slack, is set per-thread via a call to prctl() using PR_SET_TIMERSLACK).
BUG=356804
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275218
Patch Set 1 #Patch Set 2 : Initial review #
Total comments: 10
Patch Set 3 : Work in progress #Patch Set 4 : Re-implemented on top of Dale's patches #Patch Set 5 : A few small fixes #
Total comments: 14
Patch Set 6 : Fix review comments #Patch Set 7 : Fix review comments #
Total comments: 4
Patch Set 8 : Fix review comments #Patch Set 9 : Rebased against head #Patch Set 10 : Really rebase #
Messages
Total messages: 26 (0 generated)
|