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

Issue 2432543002: Refactoring WorkletThreadBackingHolder with template pattern (Closed)

Created:
4 years, 2 months ago by hongchan
Modified:
4 years, 1 month ago
CC:
Raymond Toy, blink-reviews, blink-worker-reviews_chromium.org, chromium-reviews, falken+watch_chromium.org, horo+watch_chromium.org, kinuko+worker_chromium.org, shimazu+worker_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring WorkletThreadBackingHolder with template pattern The current design of WorkletBackingThreadHolder has too many duplicated components. Refactor it with the template pattern. BUG=657101 TEST=NONE (The CL passes AudioWorkletThread unit tests.) Committed: https://crrev.com/b6660c6d8bb364f1122c94db9f19a98f38b42a7a Cr-Commit-Position: refs/heads/master@{#428131}

Patch Set 1 : Using Template #

Total comments: 9

Patch Set 2 : Applying template to AudioWorkletThread directly #

Patch Set 3 : Applying nhiroki`s design #

Patch Set 4 : Add destructor for WorkletThreadHolder #

Total comments: 2

Patch Set 5 : Compiles and passes tests #

Patch Set 6 : Refactor AbstractAnimationWorkletThread #

Patch Set 7 : Clean up and rename template class file #

Total comments: 11

Patch Set 8 : Fixing typos #

Messages

Total messages: 50 (28 generated)
hongchan
PTAL at the overall design and let me know what you think.
4 years, 2 months ago (2016-10-18 20:12:04 UTC) #2
nhiroki
Thank you for working on this :) https://codereview.chromium.org/2432543002/diff/1/third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h File third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h (right): https://codereview.chromium.org/2432543002/diff/1/third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h#newcode34 third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h:34: // instance ...
4 years, 2 months ago (2016-10-19 01:36:49 UTC) #7
hongchan
nhiroki@ Unfortunately, I am not sure how to make it work with your suggestion. They ...
4 years, 1 month ago (2016-10-24 18:39:21 UTC) #8
nhiroki
On 2016/10/24 18:39:21, hongchan wrote: > nhiroki@ > > Unfortunately, I am not sure how ...
4 years, 1 month ago (2016-10-25 04:29:24 UTC) #9
hongchan
On 2016/10/25 04:29:24, nhiroki (slow until Oct. 31) wrote: > On 2016/10/24 18:39:21, hongchan wrote: ...
4 years, 1 month ago (2016-10-25 19:50:33 UTC) #15
nhiroki
https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp File third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp (left): https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp#oldcode52 third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp:52: new AudioWorkletThreadHolder(WorkerBackingThread::createForTest( Ah, we removed this part :p In ...
4 years, 1 month ago (2016-10-25 22:39:34 UTC) #16
hongchan
On 2016/10/25 22:39:34, nhiroki (slow until Oct. 31) wrote: > https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp > File third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp (left): ...
4 years, 1 month ago (2016-10-25 23:04:55 UTC) #17
nhiroki
On 2016/10/25 23:04:55, hongchan wrote: > One issue: this template class also needs to support ...
4 years, 1 month ago (2016-10-26 00:08:21 UTC) #18
haraken
I think this is going in a right direction.
4 years, 1 month ago (2016-10-26 07:38:22 UTC) #19
nhiroki
https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp File third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp (right): https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp#newcode70 third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp:70: void AudioWorkletThread::clearSharedBackingThread() { Copied from https://codereview.chromium.org/2448863002/ On 2016/10/26 07:41:49, ...
4 years, 1 month ago (2016-10-26 08:08:18 UTC) #20
hongchan
On 2016/10/26 08:08:18, nhiroki (slow until Oct. 31) wrote: > https://codereview.chromium.org/2432543002/diff/60001/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp > File third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp (right): ...
4 years, 1 month ago (2016-10-26 18:35:38 UTC) #21
nhiroki
On 2016/10/26 18:35:38, hongchan wrote: > On 2016/10/26 08:08:18, nhiroki (slow until Oct. 31) wrote: ...
4 years, 1 month ago (2016-10-26 21:32:42 UTC) #24
hongchan
PTAL. I believe the CL is ready for the actual review. - Applying the new ...
4 years, 1 month ago (2016-10-26 23:28:38 UTC) #30
nhiroki
LGTM! Thank you for working on this :) https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h File third_party/WebKit/Source/core/workers/WorkletThreadHolder.h (right): https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h#newcode17 third_party/WebKit/Source/core/workers/WorkletThreadHolder.h:17: class ...
4 years, 1 month ago (2016-10-27 00:03:35 UTC) #31
nhiroki
https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h File third_party/WebKit/Source/core/workers/WorkletThreadHolder.h (right): https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h#newcode53 third_party/WebKit/Source/core/workers/WorkletThreadHolder.h:53: DCHECK_EQ(nullptr, s_threadHolderInstance); On 2016/10/27 00:03:35, nhiroki (slow until Oct. ...
4 years, 1 month ago (2016-10-27 00:04:20 UTC) #32
haraken
LGTM
4 years, 1 month ago (2016-10-27 01:23:19 UTC) #35
ikilpatrick
lgtm
4 years, 1 month ago (2016-10-27 16:09:31 UTC) #36
hongchan
Thanks for the review! https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h File third_party/WebKit/Source/core/workers/WorkletThreadHolder.h (right): https://codereview.chromium.org/2432543002/diff/120001/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h#newcode17 third_party/WebKit/Source/core/workers/WorkletThreadHolder.h:17: class WaitableEvent; On 2016/10/27 00:03:35, ...
4 years, 1 month ago (2016-10-27 17:31:07 UTC) #37
Raymond Toy
lgtm for webaudio parts. Please fix the typo in the description ("Refacotring")
4 years, 1 month ago (2016-10-27 18:52:36 UTC) #40
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/2432543002/140001
4 years, 1 month ago (2016-10-27 20:43:25 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-27 20:49:35 UTC) #48
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 20:51:51 UTC) #50
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b6660c6d8bb364f1122c94db9f19a98f38b42a7a
Cr-Commit-Position: refs/heads/master@{#428131}

Powered by Google App Engine
This is Rietveld 408576698