scheduler: Throttle timers in out-of-view frames
Throttle timer tasks to 1 Hz in out-of-view or invisible frames. This
reduces the power consumption and performance impact of these tasks,
which are not likely having any visible effect on the page anyway.
BUG=
616519
Committed:
https://crrev.com/7fec349e59e40dd9beee5f7eafa9e0db5c4ac1bd
Cr-Commit-Position: refs/heads/master@{#415278}