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

Issue 1100413004: workers: Move ownership of WebThread from WorkerThread (Closed)

Created:
5 years, 8 months ago by sadrul
Modified:
5 years, 7 months ago
CC:
blink-reviews, falken, horo+watch_chromium.org, kinuko+worker_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

workers: Move ownership of WebThread from WorkerThread WorkerThread currently creates and owns the WebThread that is used for the worker. However, for compositor-workers, we want to run all the worker scripts in the same thread. To allow for this, move ownership of WebThread from WorkerThread, and have each type of worker implementation provide the WebThread to use for the worker. BUG=436952, 436932 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194715

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -42 lines) Patch
M Source/core/workers/DedicatedWorkerThread.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/workers/DedicatedWorkerThread.cpp View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/workers/SharedWorkerThread.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/workers/SharedWorkerThread.cpp View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/workers/WorkerThread.h View 1 2 3 4 6 chunks +11 lines, -12 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 4 9 chunks +17 lines, -22 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerThread.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/compositorworker/CompositorWorkerThread.cpp View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerThread.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerThread.cpp View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 16 (3 generated)
sadrul
5 years, 8 months ago (2015-04-24 08:21:25 UTC) #2
kinuko
https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h File Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h#newcode169 Source/core/workers/WorkerThread.h:169: OwnPtr<WebThreadSupportingGC> m_ownThread; The relationship between m_thread and m_ownThread seems ...
5 years, 7 months ago (2015-04-27 06:02:58 UTC) #3
sadrul
https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h File Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h#newcode169 Source/core/workers/WorkerThread.h:169: OwnPtr<WebThreadSupportingGC> m_ownThread; On 2015/04/27 06:02:58, kinuko wrote: > The ...
5 years, 7 months ago (2015-04-27 07:05:30 UTC) #4
kinuko
On 2015/04/27 07:05:30, sadrul wrote: > https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h > File Source/core/workers/WorkerThread.h (right): > > https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h#newcode169 > ...
5 years, 7 months ago (2015-04-27 11:14:46 UTC) #5
sadrul
On 2015/04/27 11:14:46, kinuko wrote: > On 2015/04/27 07:05:30, sadrul wrote: > > > https://codereview.chromium.org/1100413004/diff/20001/Source/core/workers/WorkerThread.h ...
5 years, 7 months ago (2015-04-28 23:02:51 UTC) #6
sadrul
> > > > Also (as is mentioned in some other thread before) the name ...
5 years, 7 months ago (2015-04-29 00:22:26 UTC) #7
kinuko
Yes, if we rename WorkerThread to WorkerScript we'd better renaming all *WorkerThread at once. (We ...
5 years, 7 months ago (2015-04-30 02:30:07 UTC) #8
sadrul
On 2015/04/30 02:30:07, kinuko wrote: > Yes, if we rename WorkerThread to WorkerScript we'd better ...
5 years, 7 months ago (2015-04-30 05:27:40 UTC) #9
kinuko
lgtm https://codereview.chromium.org/1100413004/diff/60001/Source/core/workers/WorkerThread.h File Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/1100413004/diff/60001/Source/core/workers/WorkerThread.h#newcode72 Source/core/workers/WorkerThread.h:72: virtual WebThreadSupportingGC* backingThread() = 0; If this never ...
5 years, 7 months ago (2015-04-30 05:31:19 UTC) #10
sadrul
https://codereview.chromium.org/1100413004/diff/60001/Source/core/workers/WorkerThread.h File Source/core/workers/WorkerThread.h (right): https://codereview.chromium.org/1100413004/diff/60001/Source/core/workers/WorkerThread.h#newcode72 Source/core/workers/WorkerThread.h:72: virtual WebThreadSupportingGC* backingThread() = 0; On 2015/04/30 05:31:18, kinuko ...
5 years, 7 months ago (2015-04-30 06:14:56 UTC) #11
jochen (gone - plz use gerrit)
rubberstamp lgtm
5 years, 7 months ago (2015-04-30 07:28:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1100413004/80001
5 years, 7 months ago (2015-04-30 07:39:37 UTC) #15
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 09:19:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194715

Powered by Google App Engine
This is Rietveld 408576698