DescriptionReduce the number of delayed tasks on chromium run loop
Previously if there were N distinct delayed times for dealyed tasks
posted to the scheduler, there would be N delayed tasks posted on the
chromium run loop. We only really need to post timers for the next
delayed task. This patch implements that. Caveat: because it's not
possible to cancel tasks posted to the chromium runloop, we will still
have more than one task outstanding if delayed tasks get posted in
reverse order.
BUG=510398, 546953
Committed: https://crrev.com/a0a01db6cee762f21b59648a6a4e0c2017b2f934
Cr-Commit-Position: refs/heads/master@{#361086}
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Fix dcheck caused by TaskQueueManagerTest.DelayedTaskWithAbsoluteRunTime #Patch Set 4 : Added a OnRegisterWithTaskQueueManager method. #Patch Set 5 : Whoops missed one #Patch Set 6 : Fixed a typo #
Total comments: 2
Patch Set 7 : Weak pointer #Messages
Total messages: 29 (15 generated)
|