Chromium Code Reviews
DescriptionThrottling Helper to disable task queue until PumpThrottledTasks called
This patch fixes a bug that caused some loading & timer tasks to run
when we expected them to be blocked. In SYNCHRONIZED_GESTURE use case
we use the ThrottlingHelper to allow these tasks to run once per second.
Unfortunately the design of the ThrottlingHelper did not consider tasks
that where in a TaskQueue's work queues. It marked the queues as being
manually pumped which prevented reloading of the work queues.
For the case of background tab throttling where the throttle state
changes very infrequently, that works acceptably. In the context of
task blocking, its totally broken and the queues might as well not have
been throttled at all.
This patch fixes that by initially disabling any queues that are
throttled. The queues are re-enabled by PumpThrottledTasks() and also
if the queue is unthrottled.
BUG=600202
Committed: https://crrev.com/82a129abeafa1bd8184b5c3e61ab2c7568edd3f8
Cr-Commit-Position: refs/heads/master@{#392614}
Patch Set 1 #Patch Set 2 : Minor optimization / fix #
Total comments: 2
Patch Set 3 : fix typo #
Messages
Total messages: 14 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||