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

Issue 2534803002: Move InspectorTask handling from MainThreadTaskRunner to Document (Closed)

Created:
4 years ago by tzik
Modified:
4 years ago
Reviewers:
haraken, nhiroki
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move InspectorTask handling from MainThreadTaskRunner to Document MainThreadTaskRunner handles the task suspension, cancellation, and instrumentation of Inspector for a posted task. However, a task posted via MainThreadTaskRunner::postInspectorTask doesn't need the task suspension and instrumentation. This CL moves InspectorTask handling from MainThreadTaskRunner to Document for smaller MainThreadTaskRunner. BUG=667310 Committed: https://crrev.com/1f1dcb17059558c87c9e6f8ee45888de1f71c2d3 Cr-Commit-Position: refs/heads/master@{#435889}

Patch Set 1 #

Patch Set 2 : s/wrapWeakPersistent/wrapCrossThreadWeakPersistent/ #

Total comments: 2

Patch Set 3 : use ParentFrameTaskRunners #

Total comments: 4

Patch Set 4 : +DCHECK. +comment #

Patch Set 5 : rebase #

Messages

Total messages: 54 (34 generated)
tzik
PTAL
4 years ago (2016-11-28 08:08:52 UTC) #5
haraken
https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5714 third_party/WebKit/Source/core/dom/Document.cpp:5714: wrapCrossThreadWeakPersistent(this), Does this need to be cross-thread? If this ...
4 years ago (2016-11-28 11:00:43 UTC) #12
tzik
https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5714 third_party/WebKit/Source/core/dom/Document.cpp:5714: wrapCrossThreadWeakPersistent(this), On 2016/11/28 11:00:43, haraken wrote: > > Does ...
4 years ago (2016-11-29 01:52:38 UTC) #13
haraken
On 2016/11/29 01:52:38, tzik wrote: > https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp#newcode5714 > ...
4 years ago (2016-11-29 02:00:45 UTC) #14
tzik
On 2016/11/29 02:00:45, haraken wrote: > On 2016/11/29 01:52:38, tzik wrote: > > > https://codereview.chromium.org/2534803002/diff/20001/third_party/WebKit/Source/core/dom/Document.cpp ...
4 years ago (2016-11-30 08:44:29 UTC) #17
haraken
Mostly LG. Do you know why these inspector tasks need to be unthrottled? Unthrottled tasks ...
4 years ago (2016-11-30 08:55:25 UTC) #18
tzik
On 2016/11/30 08:55:25, haraken wrote: > Mostly LG. > > Do you know why these ...
4 years ago (2016-11-30 09:42:43 UTC) #19
haraken
On 2016/11/30 09:42:43, tzik wrote: > On 2016/11/30 08:55:25, haraken wrote: > > Mostly LG. ...
4 years ago (2016-11-30 09:44:00 UTC) #20
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/2534803002/40001
4 years ago (2016-11-30 10:37:49 UTC) #23
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/workers/ThreadedWorkletObjectProxy.cpp: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-30 11:05:06 UTC) #25
nhiroki
drive-by comments https://codereview.chromium.org/2534803002/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp (right): https://codereview.chromium.org/2534803002/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp#newcode144 third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp:144: return; We might want to replace this ...
4 years ago (2016-11-30 14:46:36 UTC) #27
tzik
https://codereview.chromium.org/2534803002/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp File third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp (right): https://codereview.chromium.org/2534803002/diff/40001/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp#newcode144 third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.cpp:144: return; On 2016/11/30 14:46:36, nhiroki (OOO until Dec 2) ...
4 years ago (2016-12-01 07:12:38 UTC) #30
nhiroki
Thank you. LGTM
4 years ago (2016-12-01 09:10:32 UTC) #33
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/2534803002/60001
4 years ago (2016-12-01 11:28:14 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/316293)
4 years ago (2016-12-01 11:34:01 UTC) #38
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/2534803002/80001
4 years ago (2016-12-02 03:51:31 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/342597)
4 years ago (2016-12-02 06:19:51 UTC) #47
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/2534803002/80001
4 years ago (2016-12-02 07:17:13 UTC) #49
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-02 08:53:32 UTC) #52
commit-bot: I haz the power
4 years ago (2016-12-02 08:55:31 UTC) #54
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1f1dcb17059558c87c9e6f8ee45888de1f71c2d3
Cr-Commit-Position: refs/heads/master@{#435889}

Powered by Google App Engine
This is Rietveld 408576698