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

Issue 1140503003: workers: Change how debugger-tasks are posted to the thread. (Closed)

Created:
5 years, 7 months ago by sadrul
Modified:
5 years, 7 months ago
Reviewers:
kinuko, yurys, pfeldman
CC:
blink-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, sof, eae+blinkwatch, leviw+renderwatch, nhiroki, falken, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-rendering, tzik, jchaffraix+rendering, kinuko+worker_chromium.org, horo+watch_chromium.org, kinuko+fileapi, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

workers: Change how debugger-tasks are posted to the thread. debugger-tasks are only posted by WorkerInspectorProxy, and these tasks are run somewhat differently from other tasks: a separate task runs WorkerThread::runDebuggerTask, which ends up running the debugger tasks. This CL keeps this basic mechanism, but moves the work related to this from WorkerThread into WorkerInspectorProxy (since it is the only user of debugger tasks). BUG=486573 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195655

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : . #

Patch Set 4 : back-to-patchset2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -34 lines) Patch
M Source/core/workers/WorkerInspectorProxy.h View 3 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerInspectorProxy.cpp View 3 5 chunks +22 lines, -9 lines 0 comments Download
M Source/core/workers/WorkerThread.h View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 2 chunks +2 lines, -21 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
sadrul
5 years, 7 months ago (2015-05-15 23:20:41 UTC) #2
yurys
https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode82 Source/core/workers/WorkerInspectorProxy.cpp:82: workerThread->workerGlobalScope()->workerInspectorController()->dispatchMessageFromFrontend(message); Why is it safe to access workerGlobalScope here? ...
5 years, 7 months ago (2015-05-15 23:41:41 UTC) #3
sadrul
https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode82 Source/core/workers/WorkerInspectorProxy.cpp:82: workerThread->workerGlobalScope()->workerInspectorController()->dispatchMessageFromFrontend(message); On 2015/05/15 23:41:41, yurys_slow wrote: > Why is ...
5 years, 7 months ago (2015-05-16 00:50:53 UTC) #4
yurys
Thanks for explaining. LGTM.
5 years, 7 months ago (2015-05-16 00:55:24 UTC) #5
kinuko
https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode108 Source/core/workers/WorkerInspectorProxy.cpp:108: m_workerThread->backingThread().postTask(location, new Task(threadSafeBind(&runDebuggerTaskForWorker, AllowCrossThreadAccess(m_workerThread)))); Could this be just threadSafeBind(&WorkerThread::runDebuggerTask, ...
5 years, 7 months ago (2015-05-18 15:19:49 UTC) #6
kinuko
5 years, 7 months ago (2015-05-18 15:19:50 UTC) #7
sadrul
+pfeldman@ https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode108 Source/core/workers/WorkerInspectorProxy.cpp:108: m_workerThread->backingThread().postTask(location, new Task(threadSafeBind(&runDebuggerTaskForWorker, AllowCrossThreadAccess(m_workerThread)))); On 2015/05/18 15:19:49, kinuko ...
5 years, 7 months ago (2015-05-19 03:50:48 UTC) #9
sadrul
https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode108 Source/core/workers/WorkerInspectorProxy.cpp:108: m_workerThread->backingThread().postTask(location, new Task(threadSafeBind(&runDebuggerTaskForWorker, AllowCrossThreadAccess(m_workerThread)))); On 2015/05/19 03:50:47, sadrul wrote: ...
5 years, 7 months ago (2015-05-19 16:23:06 UTC) #10
kinuko
https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp File Source/core/workers/WorkerInspectorProxy.cpp (right): https://codereview.chromium.org/1140503003/diff/20001/Source/core/workers/WorkerInspectorProxy.cpp#newcode108 Source/core/workers/WorkerInspectorProxy.cpp:108: m_workerThread->backingThread().postTask(location, new Task(threadSafeBind(&runDebuggerTaskForWorker, AllowCrossThreadAccess(m_workerThread)))); On 2015/05/19 16:23:06, sadrul wrote: ...
5 years, 7 months ago (2015-05-20 08:17:46 UTC) #11
kinuko
Reg: PS2 I don't have strong opinion on the change, if it looks good to ...
5 years, 7 months ago (2015-05-20 08:18:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1140503003/80001
5 years, 7 months ago (2015-05-20 21:36:08 UTC) #16
commit-bot: I haz the power
5 years, 7 months ago (2015-05-21 00:10:20 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=195655

Powered by Google App Engine
This is Rietveld 408576698