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

Issue 1730153005: [cherrypick] Fix computation of runtime for throttled tasks (Closed)

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

Description

[cherrypick] Fix computation of runtime for throttled tasks The computation of the delayed task runtime was computing the (virtual) TimeDomain's now + delay. That doesn't take into account the skew between the real time and the virtual time, which meant timers could run sooner than expected for background tabs. Timers associated with foreground tabs are unaffected. This patch makes the computation of delayed runtime the responsibility of the TimeDomain and introduces a ThrottledTimeDomain which computes the delayed runtime as realtime + delay. This means timers will no longer run sooner than expected. Under normal circumstancs this only timers whose delay modulo 1000ms is less than 100 ms are less likely to be affected. Timers whose whose delay modulo 1000ms is greater than 900 are highly likely to be affected (there's a good chance their delay was too small before). BUG=587074 Review URL: https://codereview.chromium.org/1718233002 Cr-Commit-Position: refs/heads/master@{#376993} (cherry picked from commit b56bbe4ce3e7276a130a00d83cf00e5672cd6be1) R=skyostil@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/fd563254490ae93382cb88a1e9a1c1e54815c97b

Patch Set 1 #

Patch Set 2 : no changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -7 lines) Patch
M components/scheduler/base/real_time_domain.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/scheduler/base/real_time_domain.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/scheduler/base/task_queue_impl.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M components/scheduler/base/time_domain.h View 1 chunk +7 lines, -0 lines 0 comments Download
M components/scheduler/base/time_domain_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/scheduler/base/virtual_time_domain.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/scheduler/base/virtual_time_domain.cc View 1 chunk +6 lines, -0 lines 0 comments Download
A components/scheduler/renderer/throttled_time_domain.h View 1 chunk +34 lines, -0 lines 0 comments Download
A components/scheduler/renderer/throttled_time_domain.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M components/scheduler/renderer/throttling_helper.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/scheduler/renderer/throttling_helper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/scheduler/renderer/throttling_helper_unittest.cc View 1 chunk +30 lines, -0 lines 0 comments Download
M components/scheduler/scheduler.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
alex clarke (OOO till 29th)
Hi Sami, I had to do a slightly non-trivial merge on this patch. PTAL.
4 years, 10 months ago (2016-02-26 13:55:04 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1730153005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1730153005/1
4 years, 10 months ago (2016-02-26 13:56:09 UTC) #5
commit-bot: I haz the power
Dry run: CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true and NOPRESUBMIT=true in ...
4 years, 10 months ago (2016-02-26 13:56:11 UTC) #7
Sami
lgtm. (Note the cq doesn't work for release branches, but we can keep an eye ...
4 years, 10 months ago (2016-02-26 15:22:23 UTC) #8
alex clarke (OOO till 29th)
Committed patchset #2 (id:20001) manually as fd563254490ae93382cb88a1e9a1c1e54815c97b.
4 years, 10 months ago (2016-02-26 15:52:55 UTC) #10
jaydasika
4 years, 10 months ago (2016-02-26 23:33:33 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1743813002/ by jaydasika@chromium.org.

The reason for reverting is: The reason for reverting is: Speculative revert for
Compile failure on Win, Mac
& Precise 64 Beta Bots (crbug.com/590286) .

Powered by Google App Engine
This is Rietveld 408576698