Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Issue 1958283005: Throttling Helper to disable task queue until PumpThrottledTasks called (Closed)

Created:
4 years, 7 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 7 months ago
Reviewers:
Sami
CC:
chromium-reviews, scheduler-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Throttling 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -3 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M components/scheduler/renderer/throttling_helper.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M components/scheduler/renderer/throttling_helper_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
alex clarke (OOO till 29th)
PTAL
4 years, 7 months ago (2016-05-10 13:42:25 UTC) #3
Sami
lgtm, thanks for the fix. https://codereview.chromium.org/1958283005/diff/20001/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc File components/scheduler/renderer/renderer_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1958283005/diff/20001/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode2708 components/scheduler/renderer/renderer_scheduler_impl_unittest.cc:2708: // will be disabled ...
4 years, 7 months ago (2016-05-10 14:28:56 UTC) #6
alex clarke (OOO till 29th)
https://codereview.chromium.org/1958283005/diff/20001/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc File components/scheduler/renderer/renderer_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/1958283005/diff/20001/components/scheduler/renderer/renderer_scheduler_impl_unittest.cc#newcode2708 components/scheduler/renderer/renderer_scheduler_impl_unittest.cc:2708: // will be disabled until the thottled queue is ...
4 years, 7 months ago (2016-05-10 14:35:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958283005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958283005/40001
4 years, 7 months ago (2016-05-10 14:35:52 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-10 15:29:03 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 15:31:28 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/82a129abeafa1bd8184b5c3e61ab2c7568edd3f8
Cr-Commit-Position: refs/heads/master@{#392614}

Powered by Google App Engine
This is Rietveld 408576698