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

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)

Created:
3 years, 9 months ago by altimin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, scheduler-bugs_chromium.org, rwlbuis, nhiroki, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Add suspendable task queue. Add suspendable task queue to avoid running (and cancelling) callbacks when execution context is suspended. R=skyostil@chromium.org,alexclarke@chromium.org,haraken@chromium.org CC=nhiroki@chromium.org,tzik@chromium.org BUG=704939, 702160 Review-Url: https://codereview.chromium.org/2754673002 Cr-Original-Commit-Position: refs/heads/master@{#459787} Committed: https://chromium.googlesource.com/chromium/src/+/12e16766adec5bb1e5cdd73d3cd8f5016b59ce18 Review-Url: https://codereview.chromium.org/2754673002 Cr-Commit-Position: refs/heads/master@{#462208} Committed: https://chromium.googlesource.com/chromium/src/+/cb434223a4b462abf2b9f9123646137250b3c2d9

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add test #

Patch Set 3 : Unthrottled means unthrottled #

Total comments: 1

Patch Set 4 : Address nit #

Patch Set 5 : For the moment make only database access tasks suspendable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/WebFrameScheduler.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl.cc View 4 chunks +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 39 (23 generated)
altimin
PTAL
3 years, 9 months ago (2017-03-15 14:42:44 UTC) #1
Sami
lgtm. https://codereview.chromium.org/2754673002/diff/1/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): https://codereview.chromium.org/2754673002/diff/1/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp#newcode50 third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:50: case TaskType::Unthrottled: Can you leave a TODO here ...
3 years, 9 months ago (2017-03-15 15:01:50 UTC) #5
Sami
Mind adding a few lines to https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc?rcl=af306bc59987517122f77e9d5eac87ff61c374aa&l=202
3 years, 9 months ago (2017-03-15 15:04:15 UTC) #6
altimin
Changed test per skyostil@'s suggestion. https://codereview.chromium.org/2754673002/diff/1/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp File third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp (right): https://codereview.chromium.org/2754673002/diff/1/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp#newcode50 third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp:50: case TaskType::Unthrottled: On 2017/03/15 ...
3 years, 9 months ago (2017-03-15 15:10:15 UTC) #9
haraken
Media tasks are posted to the unthrottled task runner. Is it okay to suspend those ...
3 years, 9 months ago (2017-03-15 15:12:17 UTC) #10
altimin
On 2017/03/15 15:12:17, haraken wrote: > Media tasks are posted to the unthrottled task runner. ...
3 years, 9 months ago (2017-03-15 15:15:30 UTC) #11
Sami
> I think that the answer is yes. We didn't encounter any specific audio-related > ...
3 years, 9 months ago (2017-03-15 15:18:49 UTC) #12
haraken
On 2017/03/15 15:18:49, Sami wrote: > > I think that the answer is yes. We ...
3 years, 9 months ago (2017-03-15 15:47:46 UTC) #13
altimin
haraken@: this should be fine now. PTAL.
3 years, 9 months ago (2017-03-22 23:19:57 UTC) #14
haraken
LGTM https://codereview.chromium.org/2754673002/diff/40001/third_party/WebKit/Source/platform/WebFrameScheduler.h File third_party/WebKit/Source/platform/WebFrameScheduler.h (right): https://codereview.chromium.org/2754673002/diff/40001/third_party/WebKit/Source/platform/WebFrameScheduler.h#newcode56 third_party/WebKit/Source/platform/WebFrameScheduler.h:56: // TODO(altimin): This is transitional task runner. Unthrottled ...
3 years, 9 months ago (2017-03-22 23:48:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2754673002/60001
3 years, 8 months ago (2017-03-27 15:41:06 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/12e16766adec5bb1e5cdd73d3cd8f5016b59ce18
3 years, 8 months ago (2017-03-27 15:46:32 UTC) #25
rnephew (Reviews Here)
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2780233002/ by rnephew@chromium.org. ...
3 years, 8 months ago (2017-03-29 18:09:59 UTC) #26
altimin
FYI: I'm landing this patch with only database access tasks moved to suspendable task queue. ...
3 years, 8 months ago (2017-04-05 16:11:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2754673002/80001
3 years, 8 months ago (2017-04-05 20:32:58 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 20:46:24 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/cb434223a4b462abf2b9f9123646...

Powered by Google App Engine
This is Rietveld 408576698